protected override void beforeEach() { _path = Path.Combine(Root, "home.spark"); _template = MockFor <ITemplate>(); _viewDescriptor = new ViewDescriptor(_template) { ViewModel = typeof(FooViewModel) }; _template.Stub(x => x.Descriptor).Return(null).WhenCalled(x => x.ReturnValue = _viewDescriptor); _template.Stub(x => x.RootPath).Return(Root); _template.Stub(x => x.FilePath).Return(null).WhenCalled(x => x.ReturnValue = _path); }
public void it_does_not_match_nullodescriptor() { _viewDescriptor = new NulloDescriptor(); ClassUnderTest.Matches(_template).ShouldBeFalse(); }
public void it_matches_if_item_has_viewmodel_and_namespace_is_empty_negative_1() { _viewDescriptor = null; ClassUnderTest.Matches(_template).ShouldBeFalse(); }