[Test] // .ctor (String) public void Constructor1() { InternalsVisibleToAttribute ivt; string aname; aname = "Mono"; ivt = new InternalsVisibleToAttribute(aname); Assert.IsTrue(ivt.AllInternalsVisible, "#A:AllInternalsVisible"); Assert.AreSame(aname, ivt.AssemblyName, "#A:AssemblyName"); Assert.AreEqual(ivt.GetType(), ivt.TypeId, "#A:TypeId"); aname = typeof(int).Assembly.FullName; ivt = new InternalsVisibleToAttribute(aname); Assert.IsTrue(ivt.AllInternalsVisible, "#B:AllInternalsVisible"); Assert.AreSame(aname, ivt.AssemblyName, "#B:AssemblyName"); Assert.AreEqual(ivt.GetType(), ivt.TypeId, "#B:TypeId"); aname = string.Empty; ivt = new InternalsVisibleToAttribute(aname); Assert.IsTrue(ivt.AllInternalsVisible, "#C:AllInternalsVisible"); Assert.AreSame(aname, ivt.AssemblyName, "#C:AssemblyName"); Assert.AreEqual(ivt.GetType(), ivt.TypeId, "#C:TypeId"); aname = null; ivt = new InternalsVisibleToAttribute(aname); Assert.IsTrue(ivt.AllInternalsVisible, "#D:AllInternalsVisible"); Assert.IsNull(ivt.AssemblyName, "#D:AssemblyName"); Assert.AreEqual(ivt.GetType(), ivt.TypeId, "#D:TypeId"); }