コード例 #1
0
        public void DNDBackgroundTest_EmptyConstuctor_NotNull()
        {
            ///Arrange & Act
            DNDbackground emptycon = new DNDbackground();

            ///Assert
            Assert.IsNotNull(emptycon, "Object not initialized");
        }
コード例 #2
0
        public void DNDBackgroundTest_Proficiencies()
        {
            ///Arrange
            DNDbackground testclass = new DNDbackground();

            ///Act
            testclass.Proficiencies.Add("Insight, Religion");
            ///Assert
            Assert.AreEqual(testclass.Proficiencies[0].ToString(), "Insight, Religion", "Property Assigning Incorrect Value");
        }
コード例 #3
0
        public void DNDBackgroundTest_Proficency()
        {
            ///Arrange
            DNDbackground testclass = new DNDbackground();

            ///Act
            testclass.Proficency = "Insight, Religion";
            ///Assert
            Assert.AreEqual(testclass.Proficency, "Insight, Religion", "Property Assigning Incorrect Value");
        }
コード例 #4
0
        public void DNDBackgroundTest_Name()
        {
            ///Arrange
            DNDbackground testclass = new DNDbackground();

            ///Act
            testclass.Name = "Acolyte";
            ///Assert
            Assert.AreEqual(testclass.Name, "Acolyte", "Property Assigning Incorrect Value");
        }
コード例 #5
0
        public void DNDBackgroundTest_Constructor_NotNull()
        {
            ///Arrange
            string name = "Acolyte";
            string prof = "Insight, Religion";
            ///Act
            DNDbackground testclass = new DNDbackground(name, prof);

            ///Assert
            Assert.IsNotNull(testclass, "Object not initialized");
        }