Example #1
0
 public void DoubleNormOnTwoTuple()
 {
     var sut = new Tuple<double, double>(3, 4);
       const double expected = 5.0;
       double actual = sut.Norm(x => (double)x);
       Assert.AreEqual(expected, actual);
 }
Example #2
0
 public void DoubleNormOnOneTuple()
 {
     var sut = new Tuple<double>(1);
       const double expected = 1;
       double actual = sut.Norm(x => (double)x);
       Assert.AreEqual(expected, actual);
 }