public void CreateDomain() { Assert.Throws<ArgumentNullException>("friendlyName", () => { AppDomain.CreateDomain(null); }); Assert.Throws<PlatformNotSupportedException>(() => { AppDomain.CreateDomain("test"); }); }