Ejemplo n.º 1
0
            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");
            }
Ejemplo n.º 2
0
            public void It_should_normalize(string iban, string expected)
            {
                // Act
                var actual = new Iban(iban);

                // Assert
                actual.ToString().Should().Be(expected);
            }
Ejemplo n.º 3
0
            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));
            }