public void ShouldReturnStringEmptyWhenUsingEmptyConstructor() { //assign TextObj expectedTextObj = new TextObj(string.Empty); TextObj actualTextObj = new TextObj(); //assert actualTextObj.Should().Be(expectedTextObj); }
public void ShouldEquate() { //arrange TextObj textOf1 = new TextObj("Test"); TextObj textOf2 = new TextObj("Test"); //assert textOf2.Should().Be(textOf1); }
public void ShouldReturnBuzzForNumberDivisibleBy5() { //arrange FizzBuzz1107 fizzBuzz = new FizzBuzz1107(5); //act TextObj result = fizzBuzz.Result(); //assert result.Should().Be(new TextObj("Buzz")); }
public void ShouldReturnTheNumber1AsString() { //arrange FizzBuzz1107 subject = new FizzBuzz1107(1); TextObj expectedTextObj = new TextObj("1"); // act TextObj result = subject.Result(); //assert result.Should().Be(expectedTextObj); }
public void ShouldReturnFizzForANumberDivisibleBy3() { //arrange FizzBuzz1107 fizzBuzz = new FizzBuzz1107(3); TextObj expectedFizzObj = new TextObj("Fizz"); //act TextObj result = fizzBuzz.Result(); //assert result.Should().Be(expectedFizzObj); }