Ejemplo n.º 1
0
        public void TestParseDetalizationOfContractOfBill_InputNull()
        {
            DetalizationOfContractOfBill excpected = new DetalizationOfContractOfBill();
            var result = ParserDetalizationExtensions.ParseDetalizationOfContractOfBill(null);

            Assert.AreEqual(excpected.ToString(), result.ToString());
        }
Ejemplo n.º 2
0
        public void TestParseDetalizationOfContractOfBill()
        {
            var result = ParserDetalizationExtensions.ParseDetalizationOfContractOfBill(listStringsDetalizationContract);

            Assert.Multiple(() =>
            {
                Assert.AreEqual(@"Вхідні дзвінки", result.Output[0].ServiceName);
                Assert.AreEqual(@"02.06.2019", result.Output[0].Date);
                Assert.AreEqual(@"20:17:47", result.Output[0].Time);
                Assert.AreEqual(@"0:30", result.Output[0].DurationA);
                Assert.AreEqual(@"", result.Output[0].DurationB);
                Assert.AreEqual(@"+380505037527", result.Output[0].NumberTarget);
                Assert.AreEqual(@"0.0000", result.Output[0].Cost);

                Assert.AreEqual(@"GPRS/CDMA з'єд.  Передача даних", result.Output[21].ServiceName);
                Assert.AreEqual(@"02.06.2019", result.Output[21].Date);
                Assert.AreEqual(@"19:38:22", result.Output[21].Time);
                Assert.AreEqual(@"118 Kb", result.Output[21].DurationA);
                Assert.AreEqual(@"", result.Output[21].DurationB);
                Assert.AreEqual(@"internet", result.Output[21].NumberTarget);
                Assert.AreEqual(@"0.0000", result.Output[21].Cost);
            });
        }