sdk/dotnet/test/Datasync.Common.Test/AssertEx.cs
/// <summary>
/// Compares the server-side data to the client-side data.
/// </summary>
/// <param name="expected"></param>
/// <param name="actual"></param>
Compares the server-side data to the client-side data.
Compares the server - side data to the client - side data .
public static void SystemPropertiesMatch(ITableData expected, JsonDocument actual)
        {
            Assert.Equal(expected.Id, actual.RootElement.GetProperty("id").GetString());
            Assert.Equal(expected.UpdatedAt.ToUniversalTime().ToString(format), actual.RootElement.GetProperty("updatedAt").GetString());
            Assert.Equal(expected.Deleted, actual.RootElement.GetProperty("deleted").GetBoolean());
            Assert.Equal(Convert.ToBase64String(expected.Version), actual.RootElement.GetProperty("version").GetString());
        }
public static void SystemPropertiesMatch ( ITableData expected , JsonDocument actual ) { Assert . Equal ( expected . Id , actual . RootElement . GetProperty ( " " ) . GetString ( ) ) ; Assert . Equal ( expected . UpdatedAt . ToUniversalTime ( ) . ToString ( format ) , actual . RootElement . GetProperty ( " " ) . GetString ( ) ) ; Assert . Equal ( expected . Deleted , actual . RootElement . GetProperty ( " " ) . GetBoolean ( ) ) ; Assert . Equal ( Convert . ToBase64String ( expected . Version ) , actual . RootElement . GetProperty ( " " ) . GetString ( ) ) ; }
Compares the server-side data to the client-side data.
Compares the server - side data to the client - side data .
expected
ITableData
None
actual
JsonDocument
None