mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-06 06:53:51 +00:00
Fixes #53
This commit is contained in:
parent
d8cef4a3fc
commit
ee7d6ce1c7
2 changed files with 27 additions and 5 deletions
|
|
@ -343,6 +343,26 @@ namespace NmeaParser.Tests
|
|||
Assert.AreEqual(0, gsv.SVs.Count);
|
||||
}
|
||||
|
||||
|
||||
[TestMethod]
|
||||
[WorkItem(53)]
|
||||
public void TestGpgsv_MissingElevationAndAzimuth()
|
||||
{
|
||||
string msgstr = "$GPGSV,3,1,12,02,06,225,16,04,,,40,05,65,251,27,07,40,057,43,0*51";
|
||||
var msg = NmeaMessage.Parse(msgstr);
|
||||
Assert.IsInstanceOfType(msg, typeof(Gsv));
|
||||
Gsv gsv = (Gsv)msg;
|
||||
Assert.AreEqual(3, gsv.TotalMessages);
|
||||
Assert.AreEqual(1, gsv.MessageNumber);
|
||||
Assert.AreEqual(12, gsv.SVsInView);
|
||||
Assert.IsNotNull(gsv.SVs);
|
||||
Assert.AreEqual(4, gsv.SVs.Count);
|
||||
Assert.AreEqual(4, gsv.SVs[1].PrnNumber);
|
||||
Assert.IsTrue(double.IsNaN(gsv.SVs[1].Elevation));
|
||||
Assert.IsTrue(double.IsNaN(gsv.SVs[1].Azimuth));
|
||||
Assert.AreEqual(40, gsv.SVs[1].SignalToNoiseRatio);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestGpgll()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue