diff --git a/.gitignore b/.gitignore
index 6553964..a6bb49f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -109,6 +109,7 @@ _TeamCity*
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
+*ncrunchsolution.user
# MightyMoose
*.mm.*
diff --git a/AstroMath.UnitTests/AstroMath.UnitTests.csproj b/AstroMath.UnitTests/AstroMath.UnitTests.csproj
index 9f778de..9457f57 100644
--- a/AstroMath.UnitTests/AstroMath.UnitTests.csproj
+++ b/AstroMath.UnitTests/AstroMath.UnitTests.csproj
@@ -1,6 +1,6 @@

-
+
Debug
@@ -54,22 +54,25 @@
- ..\packages\Castle.Core.4.4.0\lib\net45\Castle.Core.dll
+ ..\packages\Castle.Core.4.4.1\lib\net45\Castle.Core.dll
-
- ..\packages\Moq.4.13.0\lib\net45\Moq.dll
+
+ ..\packages\JetBrains.Annotations.2020.3.0\lib\net20\JetBrains.Annotations.dll
-
- ..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll
+
+ ..\packages\Moq.4.15.2\lib\net45\Moq.dll
+
+
+ ..\packages\NUnit.3.13.0\lib\net45\nunit.framework.dll
-
- ..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll
+
+ ..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll
- ..\packages\System.Threading.Tasks.Extensions.4.5.3\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll
+ ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
@@ -97,6 +100,6 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
+
\ No newline at end of file
diff --git a/AstroMath.UnitTests/AstroMathsUnitTests.cs b/AstroMath.UnitTests/AstroMathsUnitTests.cs
index 489c873..2e4e37c 100644
--- a/AstroMath.UnitTests/AstroMathsUnitTests.cs
+++ b/AstroMath.UnitTests/AstroMathsUnitTests.cs
@@ -18,14 +18,14 @@ namespace AstroMath.UnitTests
[Test]
public void DegreesToRadians()
{
- var radians = _astroMath.DegreesToRadians(90);
+ var radians = 90.0.DegreesToRadians();
Assert.That(radians, Is.EqualTo(1.5707963267948966));
}
[Test]
public void RadiansToDegrees()
{
- var degrees = _astroMath.RadiansToDegrees(1.5707963267948966);
+ var degrees = 1.5707963267948966.RadiansToDegrees();
Assert.That(degrees, Is.EqualTo(90));
}
@@ -34,7 +34,7 @@ namespace AstroMath.UnitTests
public void DateTimeToDecimalHours_book()
{
DateTime dateTime = new DateTime(2019, 05, 18, 18, 31, 27, DateTimeKind.Utc);
- var decimalHours = _astroMath.DateTimeToDecimalHours(dateTime);
+ var decimalHours = dateTime.DateTimeToDecimalHours();
Assert.That(decimalHours, Is.EqualTo(18.524166666666666));
}
@@ -43,7 +43,7 @@ namespace AstroMath.UnitTests
public void DateTimeToDecimalHours()
{
DateTime dateTime = new DateTime(2019, 05, 18, 22, 26, 15, DateTimeKind.Utc);
- var decimalHours = _astroMath.DateTimeToDecimalHours(dateTime);
+ var decimalHours = dateTime.DateTimeToDecimalHours();
Assert.That(decimalHours, Is.EqualTo(22.4375));
}
@@ -52,7 +52,7 @@ namespace AstroMath.UnitTests
public void UTtoGST_book()
{
DateTime dateTime = new DateTime(1980, 04, 22, 14, 36, 51, 670, DateTimeKind.Utc);
- double gst = _astroMath.UTtoGst(dateTime);
+ double gst = dateTime.UTtoGst();
Assert.That(gst, Is.EqualTo(4.667932706211154));
}
@@ -61,7 +61,7 @@ namespace AstroMath.UnitTests
public void UTtoGst()
{
DateTime dateTime = new DateTime(2019, 05, 18, 22, 26, 15, DateTimeKind.Utc);
- double gst = _astroMath.UTtoGst(dateTime);
+ double gst = dateTime.UTtoGst();
Assert.That(gst, Is.EqualTo(14.191879687876451));
}
diff --git a/AstroMath.UnitTests/app.config b/AstroMath.UnitTests/app.config
index 319783c..fe20587 100644
--- a/AstroMath.UnitTests/app.config
+++ b/AstroMath.UnitTests/app.config
@@ -8,7 +8,7 @@
-
+
diff --git a/AstroMath.UnitTests/packages.config b/AstroMath.UnitTests/packages.config
index 2b99214..2bd4fbf 100644
--- a/AstroMath.UnitTests/packages.config
+++ b/AstroMath.UnitTests/packages.config
@@ -1,8 +1,9 @@

-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FocuserTestConsole/FocuserTestConsole.csproj b/FocuserTestConsole/FocuserTestConsole.csproj
index 8818966..a0e33a3 100644
--- a/FocuserTestConsole/FocuserTestConsole.csproj
+++ b/FocuserTestConsole/FocuserTestConsole.csproj
@@ -59,6 +59,9 @@
+
+ ..\packages\JetBrains.Annotations.2020.3.0\lib\net20\JetBrains.Annotations.dll
+
@@ -72,6 +75,7 @@
+