public void SuspendableViewGetFormNodeCollectionReturnsInjectedGetFormNodeCollectionsSuspendableView() { var expected = Mock.Of <INodeCollection <Modifier> >(); var stat = Mock.Of <IStat>(); var path = PathDefinition.MainPath; var graphCollection = Mock.Of <IStatGraphCollection>( c => c.GetOrAdd(stat).GetFormNodeCollection(new FormNodeSelector(Form.BaseAdd, path)).SuspendableView == expected); var sut = new SuspendableViewNodeRepository(graphCollection); var actual = sut.GetFormNodeCollection(stat, Form.BaseAdd, path); Assert.AreSame(expected, actual); }