public UnitPartsConverterSource()
        {
            var settings = new MockSettings();

            Metres    = settings.Metres;
            Kilograms = settings.Kilograms;
            Seconds   = settings.Seconds;
            _datas    = new List <Data>
            {
                new Data("m^2", "m²", new UnitAndPower(Metres, 2)),
                new Data("m²", "m²", new UnitAndPower(Metres, 2)),
                new Data("m³", "m³", new UnitAndPower(Metres, 3)),
                new Data("kg⋅m/s²", "kg⋅m⋅s⁻²", new UnitAndPower(Kilograms, 1), new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -2)),
                new Data("kg⋅m⋅s⁻²", "kg⋅m⋅s⁻²", new UnitAndPower(Kilograms, 1), new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -2)),
                new Data("kg*m/s²", "kg⋅m⋅s⁻²", new UnitAndPower(Kilograms, 1), new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -2)),
                new Data("m/s", "m⋅s⁻¹", new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -1)),
                new Data("m/s", "m⋅s⁻¹", new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -1)),
                new Data("m¹⋅s^-1", "m⋅s⁻¹", new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -1)),
                new Data("m^1⋅s^-1", "m⋅s⁻¹", new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -1)),
                new Data("m⋅s⁻¹", "m⋅s⁻¹", new UnitAndPower(Metres, 1), new UnitAndPower(Seconds, -1)),
                new Data("1/s", "s⁻¹", new UnitAndPower(Seconds, -1)),
                new Data("s^-1", "s⁻¹", new UnitAndPower(Seconds, -1))
                //new Data("J/s",new UnitAndPower(Joules, 1),new UnitAndPower(Seconds, -1)),
            };
        }
Example #2
0
 public void SetUp()
 {
     _settings = new MockSettings();
     _length   = _settings.Length;
     _speed    = _settings.Speed;
     _time     = _settings.Time;
     _area     = _settings.Area;
     _volume   = _settings.Volume;
 }
Example #3
0
 public void SetUp()
 {
     _settings = new MockSettings();
 }
Example #4
0
 public void SetUp()
 {
     _settings = new MockSettings();
     _metres   = _settings.Metres;
     _seconds  = _settings.Seconds;
 }