Example #1
0
 public void TestQ07DateAboveRange()
 {
     Assert.IsFalse(Logical_Operations.Q07(
                        DateTime.Parse("1/1/2019"),
                        DateTime.Parse("2/1/2019"),
                        DateTime.Parse("2/1/2019"),
                        false));
 }
Example #2
0
 public void TestQ07IsValidTrue()
 {
     Assert.IsTrue(Logical_Operations.Q07(
                       DateTime.Parse("1/1/2019"),
                       DateTime.Parse("2/1/2019"),
                       DateTime.Parse("2/2/2019"),
                       true));
 }
Example #3
0
 public void TestQ04CounterNotLessThanYears()
 {
     Assert.IsFalse(Logical_Operations.Q04(true, 1, 1));
 }
Example #4
0
 public void TestQ04Invalid()
 {
     Assert.IsFalse(Logical_Operations.Q04(false, 1, 0));
 }
Example #5
0
 public void TestQ02TopOfExcludedRange()
 {
     Assert.IsFalse(Logical_Operations.Q02(11));
 }
Example #6
0
 public void TestQ02BelowRange()
 {
     Assert.IsTrue(Logical_Operations.Q02(4));
 }
Example #7
0
 public void TestQ13NoTaxNoTaxFood()
 {
     Assert.IsFalse(Logical_Operations.Q13("MN", "Food"));
 }
Example #8
0
 public void TestQ13NoTaxNoTaxClothing()
 {
     Assert.IsFalse(Logical_Operations.Q13("MN", "Clothing"));
 }
Example #9
0
 public void TestQ10CNotLessThanD()
 {
     Assert.IsFalse(Logical_Operations.Q10(1, 1, 4, 4));
 }
Example #10
0
 public void TestQ10ValidRanges()
 {
     Assert.IsTrue(Logical_Operations.Q10(1, 2, 3, 4));
 }
Example #11
0
 public void TestQ09ValidCounter()
 {
     Assert.IsTrue(Logical_Operations.Q09(0, 1));
 }
Example #12
0
 public void TestQ09InvalidCounter()
 {
     Assert.IsFalse(Logical_Operations.Q09(0, 0));
 }
Example #13
0
 public void TestQ08PartTime_InvalidYears()
 {
     Assert.IsFalse(Logical_Operations.Q08(
                        0, 0, "Part time", 2019, 2019));
 }
Example #14
0
 public void TestQ01AtMin()
 {
     Assert.IsTrue(Logical_Operations.Q01(250));
 }
Example #15
0
 public void TestQ08InvalidYTD_NotPartTime_ValidYears()
 {
     Assert.IsFalse(Logical_Operations.Q08(
                        0, 0, "", 2018, 2019));
 }
Example #16
0
 public void TestQ12FreeShippingPriceOver25WeightUnder1()
 {
     Assert.IsTrue(Logical_Operations.Q12(false, 25.0m, 0.99f));
 }
Example #17
0
 public void TestQ13NoTaxOutsideMN()
 {
     Assert.IsFalse(Logical_Operations.Q13("AA", "Electronics"));
 }
Example #18
0
 public void TestQ10CLessThanD()
 {
     Assert.IsTrue(Logical_Operations.Q10(1, 1, 3, 4));
 }
Example #19
0
 public void TestQ01AboveRange()
 {
     Assert.IsFalse(Logical_Operations.Q01(500));
 }
Example #20
0
 public void TestQ10BinRange()
 {
     Assert.IsTrue(Logical_Operations.Q10(2, 1, 3, 0));
 }
Example #21
0
 public void TestQ13TaxMN()
 {
     Assert.IsTrue(Logical_Operations.Q13("MN", "Electronics"));
 }
Example #22
0
 public void TestQ01AtMax()
 {
     Assert.IsTrue(Logical_Operations.Q01(499));
 }
Example #23
0
 public void TestQ02BottomOfExcludedRange()
 {
     Assert.IsFalse(Logical_Operations.Q02(5));
 }
Example #24
0
 public void TestQ11FreeShippingOver25()
 {
     Assert.IsTrue(Logical_Operations.Q11(false, 25m, 1.1f));
 }
Example #25
0
 public void TestQ02AboveRange()
 {
     Assert.IsTrue(Logical_Operations.Q02(12));
 }
Example #26
0
 public void TestQ11FreeShipping1OunceOrLess()
 {
     Assert.IsTrue(Logical_Operations.Q11(false, 24.99m, 1.0f));
 }
Example #27
0
 public void TestQ04CounterLessThanYears()
 {
     Assert.IsTrue(Logical_Operations.Q04(true, 1, 0));
 }
Example #28
0
 public void TestQ12NotFreeShipping()
 {
     Assert.IsFalse(Logical_Operations.Q12(false, 24.99m, 1.0f));
 }
Example #29
0
 public void TestQ05IsValidTrue()
 {
     Assert.IsTrue(Logical_Operations.Q05(true, 0, 0));
 }
Example #30
0
 public void TestQ12FreeShippingToMembers()
 {
     Assert.IsTrue(Logical_Operations.Q12(true, 24.99m, 1.0f));
 }