public void DefaultStruct() { HelperStruct1 source = default; var dest = GetClone(source, 0); Assert.Equal(source, dest); }
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; }
public void Setup() { _nullableInt = RandGen.GenerateInt(); _nullInt = null; _struct = new HelperStruct1(); }