public void IsValidReturnsWhetherStringIsValidTest(string value, bool expected) { var sut = new NoSlashAttribute(); var actual = sut.IsValid(value); actual.Should().Be(expected); }
public void IsValidReturnsTrueWithUnsupportedValueTypeTest() { var sut = new NoSlashAttribute(); var actual = sut.IsValid(Guid.NewGuid()); actual.Should().BeTrue(); }
public void IsValidReturnsTrueWithNullValueTest() { var sut = new NoSlashAttribute(); var actual = sut.IsValid(null); actual.Should().BeTrue(); }
public void IsValidReturnsWhetherListStringIsValidTest(string value, bool expected) { var items = new List <string> { "first", value, "second" }; var sut = new NoSlashAttribute(); var actual = sut.IsValid(items); actual.Should().Be(expected); }