コード例 #1
0
        public void ExtensionUsageForNullDimension()
        {
            Dimension <bool, Person> dimension = null;

            dimension.BuildBool();
            Assert.Fail("The expected exception was not thrown.");
        }
コード例 #2
0
        public void IsCorrectParentAssigned()
        {
            var dimension        = new Dimension <bool, Person>(MethodBase.GetCurrentMethod().Name, k => k.Active);
            var dimensionEntries = dimension.BuildBool();

            foreach (var dimensionEntry in dimensionEntries)
            {
                if (dimensionEntry.Parent != dimension)
                {
                    Assert.Fail("Parent is not the same as initialized");
                }
            }
        }