Esempio n. 1
0
 public void TestRoot()
 {
     IMLTestRoot test = new IMLTestRoot {
         Root = CreateChild()
     },
                 clone = Serializer.DeepClone(test);
 }
 public void TestRoot()
 {
     Program.ExpectFailure<InvalidOperationException>(() =>
     {
         IMLTestRoot test = new IMLTestRoot { Root = CreateChild() },
                     clone = Serializer.DeepClone(test);
     });
 }
Esempio n. 3
0
        public void TestRoot()
        {
            var         rtm  = TypeModel.Create();
            IMLTestRoot test = new IMLTestRoot {
                Root = CreateChild()
            };

            Assert.That(() => rtm.DeepClone(test), Throws.TypeOf <InvalidOperationException>());
        }
 public void TestRoot()
 {
     Program.ExpectFailure <InvalidOperationException>(() =>
     {
         IMLTestRoot test = new IMLTestRoot {
             Root = CreateChild()
         },
         clone = Serializer.DeepClone(test);
     });
 }
 public void TestRoot()
 {
     IMLTestRoot test = new IMLTestRoot {Root = CreateChild()},
                 clone = Serializer.DeepClone(test);
 }