public void GetPathReturnsInjectedPathsDefaultView() { var expected = Mock.Of <IObservableCollection <PathDefinition> >(); var stat = Mock.Of <IStat>(); var graphCollection = Mock.Of <IStatGraphCollection>( c => c.GetOrAdd(stat).Paths.SuspendableView == expected); var sut = new SuspendableViewNodeRepository(graphCollection); var actual = sut.GetPaths(stat); Assert.AreSame(actual, expected); }