Пример #1
0
 public void SetPowerTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.AmountOfSubstance, 5);
     dimension.SetPower(DimensionBase.Currency, 6);
     dimension.SetPower(DimensionBase.ElectricCurrent, 7);
     dimension.SetPower(DimensionBase.Length, 8);
     dimension.SetPower(DimensionBase.LuminousIntensity, 9);
     dimension.SetPower(DimensionBase.Mass, 10);
     dimension.SetPower(DimensionBase.Temperature, 11);
     dimension.SetPower(DimensionBase.Time, 12);
     Assert.AreEqual(5,dimension.GetPower(DimensionBase.AmountOfSubstance));
     Assert.AreEqual(6, dimension.GetPower(DimensionBase.Currency));
     Assert.AreEqual(7, dimension.GetPower(DimensionBase.ElectricCurrent));
     Assert.AreEqual(8, dimension.GetPower(DimensionBase.Length));
     Assert.AreEqual(9, dimension.GetPower(DimensionBase.LuminousIntensity));
     Assert.AreEqual(10, dimension.GetPower(DimensionBase.Mass));
     Assert.AreEqual(11, dimension.GetPower(DimensionBase.Temperature));
     Assert.AreEqual(12, dimension.GetPower(DimensionBase.Time));
 }
Пример #2
0
        public void CurrencyTest()
        {
            Dimension dimension = new Dimension();
            dimension.SetPower(DimensionBase.Currency, -4);
            Assert.AreEqual(-4, dimension.Currency);

        }
Пример #3
0
 public void AmountOfSubstanceTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.AmountOfSubstance, -4);
     Assert.AreEqual(-4, dimension.AmountOfSubstance);
 }
Пример #4
0
 public void ElectricCurrentTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.ElectricCurrent, -4);
     Assert.AreEqual(-4, dimension.ElectricCurrent);
 }
Пример #5
0
 public void LengthTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.Length, -4);
     Assert.AreEqual(-4, dimension.Length);
 }
Пример #6
0
 public void LuminousIntensityTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.LuminousIntensity, -4);
     Assert.AreEqual(-4, dimension.LuminousIntensity);
 }
Пример #7
0
 public void MassTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.Mass, -4);
     Assert.AreEqual(-4, dimension.Mass);
 }
Пример #8
0
 public void TemperatureTest()
 {
     Dimension dimension = new Dimension();
     dimension.SetPower(DimensionBase.Temperature, -4);
     Assert.AreEqual(-4, dimension.Temperature);
 }