public void Lab_42_testMe_Test01() { //arrange var instance01 = new testMe(); var expected = 14.0; //act var actual = instance01.BIDMAS01(10, 20, 5); //assert Assert.AreEqual(expected, actual); }
public void Demo_Test_For_Lab_42_TestMe02() { //arrange var instance02 = new testMe(); var expected2 = 53.0; //act var actual2 = instance02.BIDMAS01(50, 30, 10); //assert Assert.AreEqual(expected2, actual2); }
static IEnumerable<GeneratePdfItem> moduleCert(testMe.skillResult mod, CultureInfo ci) { char id; switch (mod.skill) { case testMe.Skills.UseLanguage: id = 'g'; break; case testMe.Skills.Listening: id = 'l'; break; case testMe.Skills.Reading: id = 'r'; break; case testMe.Skills.Speaking: id = 's'; break; case testMe.Skills.Writing: id = 'w'; break; default: throw new NotImplementedException(); } yield return new GeneratePdfItem() { Name = id + "_level", Value = mod.title, IsBold = false, FontSize = 11 }; yield return new GeneratePdfItem() { Name = id + "_score", Value = mod.score().ToString(), IsBold = false, FontSize = 11 }; yield return new GeneratePdfItem() { Name = id + "_start", Value = LowUtils.formatDate(mod.started, ci), IsBold = false, FontSize = 9 }; yield return new GeneratePdfItem() { Name = id + "_end", Value = LowUtils.formatDate(mod.finished, ci), IsBold = false, FontSize = 9 }; yield return new GeneratePdfItem() { Name = id + "_time", Value = LowUtils.formatTimeSpan(mod.elapsed), IsBold = false, FontSize = 9 }; yield return new GeneratePdfItem() { Name = id + "_startend", Value = testResultHelper.dateTxtProc(LowUtils.numToDate(mod.started), LowUtils.numToDate(mod.finished), ci), IsBold = false, FontSize = 9 }; }