public void ThrowIfArgumentIsNotNullOnDummyClass() { DummyClass sut = new DummyClass(); sut.ThrowIfArgumentIsNull("DummyClass"); }
public void XmlSerializeString() { DummyClass dummy = new DummyClass(); dummy.Name = "xyz"; string actual = dummy.XmlSerialize<DummyClass>(); string expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><DummyClass xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><Name>xyz</Name></DummyClass>"; Assert.AreEqual(expected, actual); }