コード例 #1
0
        private static void TestModelValidation(StubValidationBroadcastModel model, double p1 = 1, double p2 =1, double p3 =1)
        {
            try
            {
                double x = CalculatePathLoss(model, p1, p2, p3);

            }
            catch (Exception e)
            {
                if (e is ArgumentOutOfRangeException) { Assert.AreEqual(1, 1, "exception!"); }
                return;
            }
            Assert.AreEqual(0, 1, "The validation is invalid!");
        }
コード例 #2
0
 private static void TestModelValidation(StubValidationBroadcastModel model, double p1 = 1, double p2 = 1, double p3 = 1)
 {
     try
     {
         double x = CalculatePathLoss(model, p1, p2, p3);
     }
     catch (Exception e)
     {
         if (e is ArgumentOutOfRangeException)
         {
             Assert.AreEqual(1, 1, "exception!");
         }
         return;
     }
     Assert.AreEqual(0, 1, "The validation is invalid!");
 }
コード例 #3
0
 private static double CalculatePathLoss(StubValidationBroadcastModel model,
     double distanceInKilometer, double baseHeight, double mobileHeight = 1.5)
 {
     return model.CalculatePathLoss(distanceInKilometer, baseHeight, mobileHeight);
 }
コード例 #4
0
 public void TestInitialize()
 {
     model = new StubValidationBroadcastModel();
 }
コード例 #5
0
 private static double CalculatePathLoss(StubValidationBroadcastModel model,
                                         double distanceInKilometer, double baseHeight, double mobileHeight = 1.5)
 {
     return(model.CalculatePathLoss(distanceInKilometer, baseHeight, mobileHeight));
 }
コード例 #6
0
 public void TestInitialize()
 {
     model = new StubValidationBroadcastModel();
 }