This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Assert{ | |
public static void AreEquals(int[] first, int[] second) { | |
// Compare | |
var equals = first.SequenceEqual(second); | |
// String representation | |
var firstText = $"[{string.Join(",", first)}]"; | |
var secondText = $"[{string.Join(",", second)}]"; | |
// Write the output to the console | |
if(equals){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table | |
declare @TableName sysname = 'TableName' | |
declare @Result varchar(max) = 'public class ' + @TableName + ' | |
{' | |
select @Result = @Result + ' | |
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } | |
' | |
from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static async Task<string> GetTextAsync(Stream image) | |
{ | |
try | |
{ | |
using (var client = new ComputerVisionClient( | |
new ApiKeyServiceClientCredentials(SubscriptionKey)) | |
{Endpoint = UriBase} | |
) | |
{ | |
var result = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-console.exe" /include:Firehose /result:console-test.xml /work:results C:\Users\fraxedas\Documents\GitHub\photo\src\photo.exif.unit.test\bin\Debug\photo.exif.unit.test.dll |