コード例 #1
0
        public void FixSentences_NoFixing()
        {
            var service = new UdpRepairService(_dbCache);

            var payload = service.FixPayload(_inputNoFixingNeeded);

            Assert.IsNotNull(payload);
            Assert.AreEqual(1, payload.Length);
            Assert.IsTrue(payload[0].ContainsSubArray(_inputNoFixingNeeded));
        }
コード例 #2
0
        public void FixSentences_PANSSYWrong()
        {
            var service = new UdpRepairService(_dbCache);

            var payloadFixed = service.FixPayload(_inputWrongPANSSY);

            Assert.IsNotNull(payloadFixed);
            Assert.AreEqual(1, payloadFixed.Length);
            Assert.IsTrue(payloadFixed[0].ContainsSubArray(_inputOk));
        }