Exemple #1
0
        public void EmptyTest()
        {
            var target = new GLL(); // TODO: Initialize to an appropriate value

            target.Empty();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Exemple #2
0
        public void ParseTest()
        {
            var      target   = new GLL(); // TODO: Initialize to an appropriate value
            Sentence sentence = null;      // TODO: Initialize to an appropriate value
            bool     expected = false;     // TODO: Initialize to an appropriate value
            bool     actual   = target.Parse(sentence);

            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Exemple #3
0
        public void Can_parse_well_formed_sentence()
        {
            var bytes  = Encoding.UTF8.GetBytes("$GPGLL,4916.45,N,12311.12,W,225444,A,*1D\r\n");
            var buffer = new ReadOnlySequence <Byte>(bytes);

            var gll = new GLL().Parse(buffer) as GLL;

            gll.ShouldNotBeNull();
            gll.Latitude.ShouldBe(49.27417d, 0.00001d);
            gll.Longitude.ShouldBe(-123.18533d, 0.00001d);
            gll.FixTime.ShouldBe(new TimeSpan(22, 54, 44));
            gll.DataActive.ShouldBe('A');
            gll.Checksum.ShouldBe(0x1D);
        }
Exemple #4
0
 static NMEAParser()
 {
     RMCSentence = new RMC();
     GGASentence = new GGA();
     GSASentence = new GSA();
     GSVSentence = new GSV[4];
     VTGSentence = new VTG();
     HDTSentence = new HDT();
     GLLSentence = new GLL();
     lockGGA     = new Object();
     lockGSA     = new Object();
     lockRMC     = new Object();
     lockGSV     = new Object();
     lockVTG     = new Object();
     lockHDT     = new Object();
     lockGLL     = new Object();
 }
Exemple #5
0
        public void GLLConstructorTest()
        {
            var target = new GLL();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }