public void ShouldThrowExceptionIfNotNumeric() { //Arrange NumberField subject = new TestNumberField(new FakeRecord("A0000102"), 0, 0); //Act Action action = () => subject.AsSystemType(); //Assert action.Should().Throw <InvalidNumberFieldException>(); }
public void AsSystemType_ShouldProvideExpectedValue() { //Arrange NumberField subject = new TestNumberField(new FakeRecord("00000001"), 0, 0); //Act int actual = subject; //Assert actual.Should().Be(1); }