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); }); }
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); }