Пример #1
0
        public void MultipleSeverDoesNotThrow()
        {
            // just a simple twice on an empty object
            var target = new GeneralTargetObject();
            Geneticist.Sever(target, null, Application.Context);
            Geneticist.Sever(target, null, Application.Context);

            // now after splicing
            var view = ViewSpliceTests.CreateView(Resource.Layout.SimpleLayout);
            target = new GeneralTargetObject();
            Geneticist.Splice(target, view, Application.Context);
            Geneticist.Sever(target, view, Application.Context);
            Geneticist.Sever(target, view, Application.Context);
        }
Пример #2
0
 public void SeverWitoutViewDoesNotThrow()
 {
     var view = ViewSpliceTests.CreateView(Resource.Layout.SimpleLayout);
     var target = new GeneralTargetObject();
     Geneticist.Splice(target, view, Application.Context);
     Geneticist.Sever(target, null, Application.Context);
 }
Пример #3
0
 public void SeverOnUnsplicedDoesNotThrow()
 {
     var view = ViewSpliceTests.CreateView(Resource.Layout.SimpleLayout);
     var simple = new GeneralTargetObject();
     Geneticist.Sever(simple, view, Application.Context);
 }