public void ShouldPrintBarWithAsterisk() { FooBarQix.Print(101).Should().Be("1*1"); FooBarQix.Print(303).Should().Be("FooFoo*Foo"); FooBarQix.Print(105).Should().Be("FooBarQix*Bar"); FooBarQix.Print(10101).Should().Be("FooQix**"); }
public void Test_13() { var input = 13; var expected = "Foo"; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void Test_51() { var input = 51; var expected = "FooBar"; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void Error_101() { var input = 101; var expected = ":("; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void Error_Negative() { var input = -7; var expected = ":("; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void Test_7() { var input = 7; var expected = "QixQix"; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void Test_10() { var input = 10; var expected = "Bar"; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void Test_8() { var input = 8; var expected = "8"; Assert.AreEqual(expected, FooBarQix.DoFooBarQix(input)); }
public void ItExists() { // Arrange var fooBarQix = new FooBarQix(); // Act & Assert string result = fooBarQix.Compute("1"); }
public void Should_Return_Correct_Value_When_Compute_With_Rules(int number, string expected) { Check.That(FooBarQix.Compute(number)).IsEqualTo(expected); }
public void should_return_number_when_input_is_regular_number(string number, string expected) { var computed = new FooBarQix().Compute(number); Assert.That(computed, Is.EqualTo(expected)); }
public void Should_return_QixQixQix_when_number_is_divisible_by_7_and_contains_7(int number, string expected) { string actual = new FooBarQix().Transform(number); Assert.AreEqual(expected, actual); }
public void Should_return_BarFoo_when_number_is_contains_by_5_and_3(int number, string expected) { string actual = new FooBarQix().Transform(number); Assert.AreEqual(expected, actual); }
public void ShouldPrintQix() { FooBarQix.Print(7).Should().Be("QixQix"); }
public void Should_return_Foo_when_number_divisible_by_5(int number, string expected) { string actual = new FooBarQix().Transform(number); Assert.AreEqual(expected, actual); }
public void should_return_string_that_contains_respectively_Foo_Bar_Qix_and_asterisk_when_input_is_divisible_by_3_5_or_7_and_contains_3_5_7_or_0(string number, string expected) { var computed = new FooBarQix(new FooBarQixOperations()).Compute(number); Assert.That(computed, Is.EqualTo(expected)); }
public void should_return_multiple_Foo_when_input_contains_3_and_is_divisisble_by_3(string number, string expected) { var computed = new FooBarQix(new FooBarQixOperations()).Compute(number); Assert.That(computed, Is.EqualTo(expected)); }
public void ShouldPrintEigth() { FooBarQix.Print(8).Should().Be("8"); }
public void ShouldPrintNumberWhenNotDivisibleByThree() { FooBarQix.Print(1).Should().Be("1"); }
public void ShouldPrintFooQix() { FooBarQix.Print(21).Should().Be("FooQix"); }
public void ShouldPrintFooBarBar() { FooBarQix.Print(15).Should().Be("FooBarBar"); }
public void ShouldPrintBarFoo() { FooBarQix.Print(53).Should().Be("BarFoo"); }
public void should_return_Foo_in_Order_when_input_contains_3_5(string number, string expected) { var computed = new FooBarQix(new FooBarQixOperations()).Compute(number); Assert.That(computed, Is.EqualTo(expected)); }
public void should_return_same_number_if_not_divisible_by_3_5_7_or_contains_3_5_7(int number, string expected) { string result = new FooBarQix().Transform(number); Assert.AreEqual(expected, result); }
public void should_return_Qix_when_input_is_divisible_by_7(string number, string expected) { var computed = new FooBarQix(new FooBarQixOperations()).Compute(number); Assert.That(computed, Is.EqualTo(expected)); }
public void should_return_Foo_when_number_is_divisible_by_3(int number, string expected) { string result = new FooBarQix().Transform(number); Assert.AreEqual(expected, result); }
public void should_return_string_that_contains_numbers_and_asterisk_when_input_contains_0_and_regular_numbers(string number, string expected) { var computed = new FooBarQix(new FooBarQixOperations()).Compute(number); Assert.That(computed, Is.EqualTo(expected)); }
public void ShouldPrintBar() { FooBarQix.Print(10).Should().Be("Bar*"); }
public void ShouldPrintFooFoo() { FooBarQix.Print(3).Should().Be("FooFoo"); }
public void should_return_string_that_contains_Foo_Bar_Qix_in_order_of_division_when_input_is_divisible_by_3_5_or_7(string number, string expected) { var computed = new FooBarQix(new FooBarQixOperations()).Compute(number); Assert.That(computed, Is.EqualTo(expected)); }