Beispiel #1
0
        public void DisplayNameTest()
        {
            string name = "AssemblyName";
            DisplayNameAttribute target = VisualStudio_Project_Samples_LocDisplayNameAttributeAccessor.CreatePrivate(name);

            Assert.IsNotNull(target.DisplayName, String.Format("DisplayName property for \"{0}\" attribute name was uninitialized.", name));
        }
Beispiel #2
0
        public void DisplayNameWithNotExistingNameResourceStrTest()
        {
            string name = "Some not existing resource string name";
            DisplayNameAttribute target = VisualStudio_Project_Samples_LocDisplayNameAttributeAccessor.CreatePrivate(name);

            Assert.AreEqual(name, target.DisplayName, String.Format("DisplayName property for \"{0}\" attribute name was initialized by unexpected value.", name));
        }
Beispiel #3
0
        public void LocDisplayNameDefaultConstructorTest()
        {
            string name = "AssemblyName";
            DisplayNameAttribute target = VisualStudio_Project_Samples_LocDisplayNameAttributeAccessor.CreatePrivate(name);

            Assert.IsNotNull(target, "DisplayNameAttribute instance was not created successfully.");
        }