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 DefaultGetNodeString(IGetDepthString getDepthString, IGetMemberTypesString getMemberTypesString) { if (getDepthString == null) { throw new ArgumentNullException("getDepthString"); } if (getMemberTypesString == null) { throw new ArgumentNullException("getMemberTypesString"); } this._getDepthString = getDepthString; this._getMemberTypesString = getMemberTypesString; }
public DefaultGetNodeString(IGetDepthString getDepthString, IGetMemberTypesString getMemberTypesString) { if (getDepthString == null) throw new ArgumentNullException("getDepthString"); if (getMemberTypesString == null) throw new ArgumentNullException("getMemberTypesString"); this._getDepthString = getDepthString; this._getMemberTypesString = getMemberTypesString; }