Example #1
0
        public void ClassToDictionary_GetOnlyGetInstances()
        {
            var testClass = TestClassWithoutInstance.Create();

            var result = testClass.ToDictionary();

            Assert.AreEqual(1, result.Count);
        }
Example #2
0
        public void ClassToKeyValuePair_GetOnlyGetInstances()
        {
            var testClass = new TestClassWithoutInstance
            {
                IntValue     = 3,
                StringValue  = "string value",
                BooleanValue = true,
                IntArray     = _intArray,
                IntList      = _intArray
            };

            var result = testClass.ToKeyValuePair();

            Assert.AreEqual(1, result.Count);
        }