Exemplo n.º 1
0
        public void TestParseStringOfDetalizationOfContractOfBill_InputCorrect()
        {
            string text = @"GPRS/CDMA з'єд.  Передача даних            internet 02.06.2019   19:38:22    118 Kb                0.0000";

            var result = ParserDetalizationExtensions.ParseStringOfDetalizationOfContractOfBill(text);

            Assert.Multiple(() => {
                Assert.AreEqual(@"GPRS/CDMA з'єд.  Передача даних", result.ServiceName);
                Assert.AreEqual(@"02.06.2019", result.Date);
                Assert.AreEqual(@"19:38:22", result.Time);
                Assert.AreEqual(@"118 Kb", result.DurationA);
                Assert.AreEqual(@"", result.DurationB);
                Assert.AreEqual(@"internet", result.NumberTarget);
                Assert.AreEqual(@"0.0000", result.Cost);
            });
        }
Exemplo n.º 2
0
        public void TestParseStringOfDetalizationOfContractOfBill_InputNull()
        {
            var result = ParserDetalizationExtensions.ParseStringOfDetalizationOfContractOfBill(null);

            Assert.AreEqual(null, result);
        }