public void For_ReturnsCombinationOfDepthAndMemberTypesStrings( [Frozen] IGetDepthString getDepthString, [Frozen] IGetMemberTypesString getMemberTypesString, DefaultGetNodeString sut, string depthString, string memberTypesString, int depth, IFixture fixture) { // Arrange fixture.MakeNonRecursive(); var graphNode = fixture.Create <GraphNode>(); getDepthString.For(depth).Returns(depthString); getMemberTypesString.For(graphNode).Returns(memberTypesString); var expectedResult = depthString + memberTypesString; // Act var result = sut.For(graphNode, depth); // Assert Assert.Equal(expectedResult, result); }
public void For_ReturnsCombinationOfDepthAndMemberTypesStrings( [Frozen] IGetDepthString getDepthString, [Frozen] IGetMemberTypesString getMemberTypesString, DefaultGetNodeString sut, string depthString, string memberTypesString, int depth, IFixture fixture) { // Arrange fixture.MakeNonRecursive(); var graphNode = fixture.Create<GraphNode>(); getDepthString.For(depth).Returns(depthString); getMemberTypesString.For(graphNode).Returns(memberTypesString); var expectedResult = depthString + memberTypesString; // Act var result = sut.For(graphNode, depth); // Assert Assert.Equal(expectedResult, result); }