public void ConstructorSetsPropertiesWithAscendingFalse() { const string expectedName = "SomeOtherField"; const bool expectedAscending = false; var sortOption = new SortOption(expectedName, expectedAscending); Assert.Equal(expectedName, sortOption.Name); Assert.Equal(expectedAscending, sortOption.Ascending); }
public void ConstructorSetsOptionalIgnoreUnmappedPropertyFromParameter() { const string expectedName = "SomeOtherField"; const bool expectedAscending = false; const bool expectedIgnoreUnmapped = true; var sortOption = new SortOption(expectedName, expectedAscending, expectedIgnoreUnmapped); Assert.Equal(expectedName, sortOption.Name); Assert.Equal(expectedAscending, sortOption.Ascending); Assert.Equal(expectedIgnoreUnmapped, sortOption.IgnoreUnmapped); }