public async Task When_TypeConverter_Exists_Then_Populated() { // Arrange var expected = new CookieTestOperation { Length = new Length { Value = 154, Unit = Unit.cm, }, }; // Act / Assert await AssertCookies( expected, new Dictionary <string, string> { [nameof(expected.Length)] = expected.Length.ToString(), }); }
public async Task When_Simple_Properties_Then_Populated() { // Arrange var expected = new CookieTestOperation { IntegerProperty = 761, EnumProperty = OperationEnum.EnumOne, GuidProperty = Guid.NewGuid(), StringProperty = "string", NullableIntegerProperty = null }; // Act / Assert await AssertCookies( expected, new Dictionary <string, string> { [nameof(expected.IntegerProperty)] = expected.IntegerProperty.ToString(), [nameof(expected.EnumProperty)] = expected.EnumProperty.ToString(), [nameof(expected.GuidProperty)] = expected.GuidProperty.ToString(), [nameof(expected.StringProperty)] = expected.StringProperty.ToString(), }); }