Пример #1
0
        public void GetBoolThrowsNullReferenceException11701()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create();
            b = this.GetBool((AphidObject)o);
        }
Пример #2
0
        public void GetNumberThrowsInvalidCastException546()
        {
            object  o;
            decimal d;

            o = AphidObjectFactory.Create(0);
            d = this.GetNumber((AphidObject)o);
        }
        public void ConvertToArrayThrowsNullReferenceException55701()
        {
            object o;

            int[] ints;
            o    = AphidObjectFactory.Create();
            ints = this.ConvertToArray <int>((AphidObject)o);
        }
Пример #4
0
        public void IsDefinedThrowsArgumentNullException51703()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create(4);
            b = this.IsDefined((AphidObject)o, (string)null);
        }
Пример #5
0
        public void TryResolveParentThrowsArgumentNullException74601()
        {
            object      o;
            AphidObject aphidObject;

            o           = AphidObjectFactory.Create(1);
            aphidObject = this.TryResolveParent((AphidObject)o, (string)null);
        }
Пример #6
0
        public void GetBoolThrowsInvalidCastException345()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create(0);
            b = this.GetBool((AphidObject)o);
        }
Пример #7
0
        public void GetNumberThrowsNullReferenceException21301()
        {
            object  o;
            decimal d;

            o = AphidObjectFactory.Create(36);
            d = this.GetNumber((AphidObject)o);
        }
Пример #8
0
        public void ResolveThrowsNullReferenceException36()
        {
            object      o;
            AphidObject aphidObject;

            o           = AphidObjectFactory.Create(10);
            aphidObject =
                this.Resolve((AphidObject)o, (AphidInterpreter)null, "", (string)null);
        }
Пример #9
0
        public void ResolveThrowsArgumentNullException12601()
        {
            object      o;
            AphidObject aphidObject;

            o           = AphidObjectFactory.Create();
            aphidObject = this.Resolve
                              ((AphidObject)o, (AphidInterpreter)null, (string)null, (string)null);
        }
Пример #10
0
        public void IsAphidType01824()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create(397);
            b = this.IsAphidType01(o);
            Assert.AreEqual <bool>(true, b);
        }
        public void TryResolve95501()
        {
            object      o;
            AphidObject aphidObject;

            o           = AphidObjectFactory.Create(1);
            aphidObject = this.TryResolve((AphidObject)null, (AphidObject)o, (string)null,
                                          true, false, false, false);
            Assert.IsNull((object)aphidObject);
        }
Пример #12
0
        public void TryResolveThrowsArgumentNullException68401()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create();
            AphidObject aphidObject = (AphidObject)null;

            b = this.TryResolve((AphidObject)o, (string)null, out aphidObject);
        }
        public void GetScopeAncestors614()
        {
            object             o;
            List <AphidObject> list;

            o    = AphidObjectFactory.Create(1012);
            list = this.GetScopeAncestors((AphidObject)o);
            Assert.IsNotNull((object)list);
            Assert.AreEqual <int>(1, list.Capacity);
            Assert.AreEqual <int>(1, list.Count);
        }
Пример #14
0
        public void CallFunction02ThrowsAphidRuntimeException598()
        {
            AphidInterpreter aphidInterpreter;
            object           o;
            AphidObject      aphidObject;

            aphidInterpreter = AphidInterpreterFactory.Create();
            o           = AphidObjectFactory.Create(0);
            aphidObject =
                this.CallFunction02(aphidInterpreter, (AphidObject)o, (object[])null);
        }
Пример #15
0
        public void CopyTo28001()
        {
            object o;

            o = AphidObjectFactory.Create(896);
            this.CopyTo((AphidObject)o, (AphidObject)o);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #16
0
        public void ConvertTo471()
        {
            object o;
            int    i;

            o = AphidObjectFactory.Create(7);
            i = this.ConvertTo <int>((AphidObject)o);
            Assert.AreEqual <int>(0, i);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(3, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #17
0
        public void GetString82301()
        {
            object o;
            string s;

            o = AphidObjectFactory.Create(36);
            s = this.GetString((AphidObject)o);
            Assert.AreEqual <string>((string)null, s);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #18
0
        public void Bind535()
        {
            object o;

            o = AphidObjectFactory.Create(660);
            object s0 = new object();

            this.Bind((AphidObject)o, s0, false);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNotNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #19
0
        public void GetList256()
        {
            object             o;
            List <AphidObject> list;

            o    = AphidObjectFactory.Create(7);
            list = this.GetList((AphidObject)o);
            Assert.IsNull((object)list);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(3, ((Dictionary <string, AphidObject>)o).Count);
        }
        public void IsComplexitySetGet83002()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create(36);
            b = this.IsComplexitySetGet((AphidObject)o);
            Assert.AreEqual <bool>(true, b);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
        public void TryResolveAndRemove623()
        {
            object o;
            bool   b;

            o = AphidObjectFactory.Create(170);
            b = this.TryResolveAndRemove((AphidObject)o, "");
            Assert.AreEqual <bool>(false, b);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNotNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #22
0
        public void ToString01538()
        {
            object o;
            string s;

            o = AphidObjectFactory.Create(0);
            s = this.ToString01((AphidObject)o);
            Assert.AreEqual <string>("test", s);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNotNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #23
0
        public void GetValueType0185701()
        {
            object o;
            string s;

            o = AphidObjectFactory.Create();
            s = this.GetValueType01((AphidObject)o, false);
            Assert.AreEqual <string>("object", s);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(3, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #24
0
        public void Bind433()
        {
            object o;

            o = AphidObjectFactory.Create(-947878915);
            object boxi = (object)(default(int));

            this.Bind((AphidObject)o, boxi, PexSafeHelpers.ByteToBoolean((byte)128));
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNotNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #25
0
        public void GetDeepHashCode608()
        {
            object o;
            int    i;

            o = AphidObjectFactory.Create();
            i = this.GetDeepHashCode((AphidObject)o);
            //Assert.AreEqual<int>(-309629839, i);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(3, ((Dictionary <string, AphidObject>)o).Count);
        }
Пример #26
0
        public void GetFunction82302()
        {
            object        o;
            AphidFunction aphidFunction;

            o             = AphidObjectFactory.Create(36);
            aphidFunction = this.GetFunction((AphidObject)o);
            Assert.IsNull((object)aphidFunction);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
        public void GetHashCode01823()
        {
            object o;
            int    i;

            o = AphidObjectFactory.Create(0);
            i = this.GetHashCode01((AphidObject)o);
            //Assert.AreEqual<int>(-353134969, i);
            Assert.IsNotNull(o);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsScalar);
            Assert.AreEqual <bool>(false, ((AphidObject)o).IsComplex);
            Assert.AreEqual <bool>(true, ((AphidObject)o).IsComplexitySet);
            Assert.IsNotNull(((AphidObject)o).Value);
            Assert.IsNull(((AphidObject)o).Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)o).Comparer);
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)o).Count);
        }
        public void FlattenScope741()
        {
            object o;

            AphidObject[] aphidObjects;
            o            = AphidObjectFactory.Create(0);
            aphidObjects = this.FlattenScope((AphidObject)o);
            Assert.IsNotNull((object)aphidObjects);
            Assert.AreEqual <int>(1, aphidObjects.Length);
            Assert.IsNotNull((object)(aphidObjects[0]));
            Assert.AreEqual <bool>(true, aphidObjects[0].IsScalar);
            Assert.AreEqual <bool>(false, aphidObjects[0].IsComplex);
            Assert.AreEqual <bool>(true, aphidObjects[0].IsComplexitySet);
            Assert.IsNotNull(aphidObjects[0].Value);
            Assert.IsNull(aphidObjects[0].Parent);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)(aphidObjects[0])).Comparer);
            Assert.AreEqual <int>
                (0, ((Dictionary <string, AphidObject>)(aphidObjects[0])).Count);
            Assert.IsNotNull(o);
            Assert.IsTrue(object.ReferenceEquals(o, (object)(aphidObjects[0])));
        }
Пример #29
0
        public void CreateChild9801()
        {
            object      o;
            AphidObject aphidObject;

            o           = AphidObjectFactory.Create(679);
            aphidObject = this.CreateChild((AphidObject)o);
            Assert.IsNotNull((object)aphidObject);
            Assert.AreEqual <bool>(false, aphidObject.IsScalar);
            Assert.AreEqual <bool>(true, aphidObject.IsComplex);
            Assert.AreEqual <bool>(true, aphidObject.IsComplexitySet);
            Assert.IsNull(aphidObject.Value);
            Assert.IsNotNull(aphidObject.Parent);
            Assert.AreEqual <bool>(false, aphidObject.Parent.IsScalar);
            Assert.AreEqual <bool>(true, aphidObject.Parent.IsComplex);
            Assert.AreEqual <bool>(true, aphidObject.Parent.IsComplexitySet);
            Assert.IsNull(aphidObject.Parent.Value);
            Assert.IsNotNull(aphidObject.Parent.Parent);
            Assert.AreEqual <bool>(false, aphidObject.Parent.Parent.IsScalar);
            Assert.AreEqual <bool>(true, aphidObject.Parent.Parent.IsComplex);
            Assert.AreEqual <bool>(true, aphidObject.Parent.Parent.IsComplexitySet);
            Assert.IsNull(aphidObject.Parent.Parent.Value);
            Assert.IsNull(aphidObject.Parent.Parent.Parent);
            Assert.IsNotNull(aphidObject.Parent.Parent.Comparer);
            Assert.AreEqual <int>(0, aphidObject.Parent.Parent.Count);
            Assert.IsNotNull(aphidObject.Parent.Comparer);
            Assert.IsTrue(object.ReferenceEquals
                              (aphidObject.Parent.Comparer, aphidObject.Parent.Parent.Comparer));
            Assert.AreEqual <int>(0, aphidObject.Parent.Count);
            Assert.IsNotNull(((Dictionary <string, AphidObject>)aphidObject).Comparer);
            Assert.IsTrue(object.ReferenceEquals
                              (((Dictionary <string, AphidObject>)aphidObject).Comparer,
                              aphidObject.Parent.Parent.Comparer));
            Assert.AreEqual <int>(0, ((Dictionary <string, AphidObject>)aphidObject).Count);
            Assert.IsNotNull(o);
            Assert.IsTrue(object.ReferenceEquals(o, aphidObject.Parent));
        }