public void test_substitute() { //arrange const string input = "//;\n1;2"; var delim = Substitute.For <IDelimiterExtractor>(); delim.GetDelimiters(input).Returns(new[] { ";" }); //act var res = new Calculator().Add(input); //assert res.Should().Be(3); }
public void test_substitute() { //arrange const string input = "//;\n1;2"; var delim = Substitute.For<IDelimiterExtractor>(); delim.GetDelimiters(input).Returns(new[] { ";" }); //act var res = new Calculator().Add(input); //assert res.Should().Be(3); }