Ejemplo n.º 1
0
        public void GetOptionObjectHeaders_OptionObject2_Null()
        {
            OptionObject2 nullOptionObject = null;
            List <string> headers          = OptionObjectHelpers.GetOptionObjectHeaders((IOptionObject2)nullOptionObject);

            Assert.AreEqual(5, headers.Count);
        }
Ejemplo n.º 2
0
        public void GetOptionObjectHeaders_OptionObject2015_IsNotNull()
        {
            OptionObject2015 optionObject = new OptionObject2015();
            List <string>    headers      = OptionObjectHelpers.GetOptionObjectHeaders((IOptionObject2015)optionObject);

            Assert.IsNotNull(headers);
        }
Ejemplo n.º 3
0
        public void GetOptionObjectHeaders_OptionObject2015_ContainsExpected_EntityID_Entry()
        {
            OptionObject2015 optionObject = new OptionObject2015();
            string           expected     = "Entity ID: " + optionObject.EntityID;
            List <string>    headers      = OptionObjectHelpers.GetOptionObjectHeaders((IOptionObject2015)optionObject);
            bool             isPresent    = headers.Contains(expected);

            Assert.IsTrue(isPresent);
        }