Rearrange namespaces

This commit is contained in:
mort5161 2014-07-25 14:37:59 -07:00
parent be76a8ea00
commit b54939e6d1
7 changed files with 28 additions and 11 deletions

View file

@ -1,4 +1,20 @@
using System;
//
// Copyright (c) 2014 Morten Nielsen
//
// Licensed under the Microsoft Public License (Ms-PL) (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://opensource.org/licenses/Ms-PL.html
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;

View file

@ -14,6 +14,7 @@
// limitations under the License.
//
using NmeaParser.Nmea;
using System;
using System.Collections.Generic;
using System.Globalization;
@ -21,7 +22,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NmeaParser.Nmea
namespace NmeaParser.Nmea.LaserRange
{
/// <summary>
/// Laser Range Measurement

View file

@ -21,7 +21,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NmeaParser.Nmea.LaserTech.LaserRange
namespace NmeaParser.Nmea.LaserRange.LaserTech
{
/// <summary>
/// Laser Range

View file

@ -21,7 +21,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NmeaParser.Nmea.Trimble.LaserRange
namespace NmeaParser.Nmea.LaserRange.Trimble
{
/// <summary>
/// Burden finder

View file

@ -21,7 +21,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NmeaParser.Nmea.Trimble.LaserRange
namespace NmeaParser.Nmea.LaserRange.Trimble
{
/// <summary>
/// Tree Measurement

View file

@ -15,11 +15,11 @@
<Compile Include="$(MSBuildThisFileDirectory)Nmea\Gps\GPGGA.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\Gps\GPRMB.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\Gps\GPRMC.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\LaserRangeMessage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\LaserTech\LaserRange\PLTIT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\LaserRange\LaserRangeMessage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\LaserRange\LaserTech\PLTIT.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\LaserRange\Trimble\PTNLA.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\LaserRange\Trimble\PTNLB.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\NmeaMessage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\Trimble\LaserRange\PTNLA.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\Trimble\LaserRange\PTNLB.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Nmea\UnknownMessage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)StreamDevice.cs" />
</ItemGroup>

View file

@ -121,8 +121,8 @@ namespace NmeaParser.Tests
{
string input = "$PTNLA,HV,002.94,M,288.1,D,008.6,D,002.98,M*74";
var msg = NmeaMessage.Parse(input);
Assert.IsInstanceOfType(msg, typeof(Nmea.Trimble.LaserRange.Ptnla));
Nmea.Trimble.LaserRange.Ptnla ptlna = (Nmea.Trimble.LaserRange.Ptnla)msg;
Assert.IsInstanceOfType(msg, typeof(NmeaParser.Nmea.LaserRange.Trimble.Ptnla));
NmeaParser.Nmea.LaserRange.Trimble.Ptnla ptlna = (NmeaParser.Nmea.LaserRange.Trimble.Ptnla)msg;
Assert.AreEqual(2.94, ptlna.HorizontalDistance);
Assert.AreEqual('M', ptlna.HorizontalDistanceUnits);
Assert.AreEqual(288.1, ptlna.HorizontalAngle);