public void With_null_format_should_throw() { // Act Action act = () => _iban.ToString(null); // Assert act.ShouldThrow <ArgumentNullException>("the provided format was null") .Which.ParamName.Should().Be("format"); }
public void It_should_normalize(string iban, string expected) { // Act var actual = new Iban(iban); // Assert actual.ToString().Should().Be(expected); }
public void With_null_format_should_throw() { string format = null; // Act // ReSharper disable once AssignNullToNotNullAttribute Action act = () => _iban.ToString(format); // Assert act.Should() .Throw <ArgumentNullException>("the provided format was null") .Which.ParamName.Should() .Be(nameof(format)); }