コード例 #1
0
        public void TotalWeightDefaultArrangeTest()
        {
            // arrange
            var vehicles = new List <Vehicle>()
            {
                new ()
                {
                    Weight = 500
                },
                new ()
                {
                    Weight = 300
                },
                new ()
                {
                    Weight = 200
                }
            };

            // act
            var actualResult = new VehicleInfoService().TotalWeight(vehicles);

            // assert
            Assert.AreEqual(1000, actualResult);
        }
コード例 #2
0
 public FormCarStyle()
 {
     InitializeComponent();
     galleryControl1.Gallery.Groups[0].Items[0].Image     = Properties.Resources._1565_questionmarkblue;
     galleryControl1.Gallery.Groups[0].Items[0].Image.Tag = null;
     m_VehicleInfoService = new VehicleInfoService();
 }