示例#1
0
        public void WindCompViewModelTest()
        {
            WindCompViewModel wcv = new WindCompViewModel();

            //var privateObject = new PrivateObject(wcv);

            wcv.WindDirection = 45;
            wcv.WindSpeed     = 120;
            wcv.RunwayHeading = 55;

            Assert.AreEqual(45, wcv.WindDirection);
            Assert.AreEqual(120, wcv.WindSpeed);
            Assert.AreEqual(55, wcv.RunwayHeading);
        }
示例#2
0
 public WindCompPage(WindCompViewModel model)
 {
     InitializeComponent();
     DataContext = model;
 }