Beispiel #1
0
        public void NullIfTest()
        {
            int    num       = 0;            // TODO: Initialize to an appropriate value
            int    compareTo = 0;            // TODO: Initialize to an appropriate value
            string expected  = string.Empty; // TODO: Initialize to an appropriate value
            string actual;

            actual = Int32ExtensionMethods.NullIf(num, compareTo);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #2
0
        public void EqualsEnumTest()
        {
            int  num      = 0;     // TODO: Initialize to an appropriate value
            Enum @enum    = null;  // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;

            actual = Int32ExtensionMethods.EqualsEnum(num, @enum);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #3
0
        public void ToFormatTest()
        {
            int    num              = 0;            // TODO: Initialize to an appropriate value
            string format           = string.Empty; // TODO: Initialize to an appropriate value
            string formatIfPositive = string.Empty; // TODO: Initialize to an appropriate value
            string formatIfZero     = string.Empty; // TODO: Initialize to an appropriate value
            string formatIfNegative = string.Empty; // TODO: Initialize to an appropriate value
            string expected         = string.Empty; // TODO: Initialize to an appropriate value
            string actual;

            actual = Int32ExtensionMethods.ToFormat(num, format, formatIfPositive, formatIfZero, formatIfNegative);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }