public static void TestNotImplementedException() { using (ECDsa ec = ECDsaFactory.Create()) { Assert.Throws <NotImplementedException>(() => ec.FromXmlString(null)); Assert.Throws <NotImplementedException>(() => ec.ToXmlString(true)); } }