예제 #1
0
        public void Test_ProfileBuilderFactory_NewProfileLiftBuilder_SummaryVolume()
        {
            var factory = new ProfilerBuilderFactory <SummaryVolumeProfileCell>();

            Assert.True(factory.NewCellProfileAnalyzer(ProfileStyle.SummaryVolume,
                                                       new SiteModel(Guid.NewGuid(), StorageMutability.Immutable),
                                                       null,
                                                       new FilterSet(new CombinedFilter()),
                                                       null, null,
                                                       VolumeComputationType.Between2Filters, null, null) != null, "Failed to construct new profile lift builder");
        }
예제 #2
0
        public void Test_ProfileBuilderFactory_NewProfileLiftBuilder_FailWithInvalidProfileCellType()
        {
            var factory = new ProfilerBuilderFactory <ProfileCell>();

            Action act = () => factory.NewCellProfileAnalyzer((ProfileStyle)100,
                                                              new SiteModel(Guid.NewGuid(), StorageMutability.Immutable),
                                                              null,
                                                              new FilterSet(new CombinedFilter()),
                                                              null, null,
                                                              VolumeComputationType.None, null, null);

            act.Should().Throw <ArgumentOutOfRangeException>();
        }
예제 #3
0
        public void Test_ProfileBuilderFactory_NewCellLiftBuilder()
        {
            var factory = new ProfilerBuilderFactory <ProfileCell>();

            Assert.True(factory.NewCellLiftBuilder(null, GridDataType.All, null, null, null) != null, "Failed to construct new cell lift builder");
        }
예제 #4
0
        public void Test_ProfileBuilderFactory_NewCellProfileBuilder()
        {
            var factory = new ProfilerBuilderFactory <ProfileCell>();

            Assert.True(factory.NewCellProfileBuilder(null, null, null, true) != null, "Failed to construct new cell profile builder");
        }
예제 #5
0
        public void Test_ProfileBuilderFactory_Creation()
        {
            var factory = new ProfilerBuilderFactory <ProfileCell>();

            Assert.NotNull(factory);
        }