Esempio n. 1
0
        public void DefaultStruct()
        {
            HelperStruct1 source = default;
            var           dest   = GetClone(source, 0);

            Assert.Equal(source, dest);
        }
Esempio n. 2
0
        public void Setup()
        {
            _complexStruct = new HelperStruct2()
            {
                Helper = new HelperStruct1()
                {
                    PropOne   = RandGen.GenerateInt(),
                    PropTwo   = RandGen.GenerateInt(),
                    PropThree = RandGen.GenerateInt()
                }
            };

            _simpleStruct = new HelperStruct1()
            {
                PropOne   = RandGen.GenerateInt(),
                PropTwo   = RandGen.GenerateInt(),
                PropThree = RandGen.GenerateInt()
            };

            _nullStruct = default;
        }
Esempio n. 3
0
 public void Setup()
 {
     _nullableInt = RandGen.GenerateInt();
     _nullInt     = null;
     _struct      = new HelperStruct1();
 }