public void testSaveToStream() { StreamWriter stream = null; GEDCOMPersonalName instance = new GEDCOMPersonalName(null, null, "", ""); Assert.Throws(typeof(NullReferenceException), () => { instance.SaveToStream(stream); }); }