Пример #1
0
        public void Create_ResultSupportsAllBaseSiDimensions()
        {
            // Arrange
            SiUnitSystemFactory factory = new SiUnitSystemFactory();

            // Act
            IUnitSystem system = factory.Create();

            // Assert
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.AmountOfSubstance));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.ElectricCurrent));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Length));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.LuminousIntensity));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Mass));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Time));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Temperature));
        }
Пример #2
0
        public void Create_ResultSupportsAllDerivedSiDimensions()
        {
            // Arrange
            SiUnitSystemFactory factory = new SiUnitSystemFactory();

            // Act
            IUnitSystem system = factory.Create();

            // Assert
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Area));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Pressure));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Volume));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Speed));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Force));
            Assert.True(system.SupportsDimension(StandardDimensionsCatalog.Energy));
        }