diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..2a9240e
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,28 @@
+{
+ // Use IntelliSense to find out which attributes exist for C# debugging
+ // Use hover for the description of the existing attributes
+ // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": ".NET Core Launch (console)",
+ "type": "coreclr",
+ "request": "launch",
+ "preLaunchTask": "build",
+ // If you have changed target frameworks, make sure to update the program path.
+ "program": "${workspaceFolder}/CSharpDate.Test/bin/Debug/netcoreapp2.0/CSharpDate.Test.dll",
+ "args": [],
+ "cwd": "${workspaceFolder}/CSharpDate.Test",
+ // For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
+ "console": "internalConsole",
+ "stopAtEntry": false,
+ "internalConsoleOptions": "openOnSessionStart"
+ },
+ {
+ "name": ".NET Core Attach",
+ "type": "coreclr",
+ "request": "attach",
+ "processId": "${command:pickProcess}"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..444a637
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,15 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "taskName": "build",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "build",
+ "${workspaceFolder}/CSharpDate.Test/CSharpDate.Test.csproj"
+ ],
+ "problemMatcher": "$msCompile"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/CSharpDate.Test/CSharpDate.Test.csproj b/CSharpDate.Test/CSharpDate.Test.csproj
index 55dde29..6bc34c4 100644
--- a/CSharpDate.Test/CSharpDate.Test.csproj
+++ b/CSharpDate.Test/CSharpDate.Test.csproj
@@ -1,68 +1,20 @@
-
-
-
- Debug
- AnyCPU
- 8.0.30703
- 2.0
- {58B56DDF-86FA-4028-A71C-EA63E391AC94}
- Library
- Properties
- CSharpDate.Test
- CSharpDate.Test
- v4.0
- 512
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- False
- ..\packages\NUnit.2.6.2\lib\nunit.framework.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {F83D91AF-E8B8-4440-850F-0EC6964978B5}
- CSharpDate
-
-
-
-
-
\ No newline at end of file
+
+
+
+ netcoreapp2.0
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CSharpDate.Test/DateTests.cs b/CSharpDate.Test/DateTests.cs
index 4dacd1b..a73b388 100644
--- a/CSharpDate.Test/DateTests.cs
+++ b/CSharpDate.Test/DateTests.cs
@@ -16,211 +16,210 @@ limitations under the License.
using System;
using System.Globalization;
-using NUnit.Framework;
+using Xunit;
namespace CSharpDate.Test
{
- [TestFixture]
public class DateTests
{
- [Test]
+ [Fact]
public void CanConstructDefault()
{
Date d = new Date();
- Assert.AreEqual(Date.MinValue.Year, d.Year);
- Assert.AreEqual(Date.MinValue.Month, d.Month);
- Assert.AreEqual(Date.MinValue.Day, d.Day);
- Assert.AreEqual(Date.MinValue.DayOfWeek, d.DayOfWeek);
- Assert.AreEqual(Date.MinValue.DayOfYear, d.DayOfYear);
+ Assert.Equal(Date.MinValue.Year, d.Year);
+ Assert.Equal(Date.MinValue.Month, d.Month);
+ Assert.Equal(Date.MinValue.Day, d.Day);
+ Assert.Equal(Date.MinValue.DayOfWeek, d.DayOfWeek);
+ Assert.Equal(Date.MinValue.DayOfYear, d.DayOfYear);
}
- [Test]
+ [Fact]
public void CanConstruct()
{
Date d = new Date(2013, 4, 5);
- Assert.AreEqual(2013, d.Year);
- Assert.AreEqual(4, d.Month);
- Assert.AreEqual(5, d.Day);
- Assert.AreEqual(DayOfWeek.Friday, d.DayOfWeek);
- Assert.AreEqual(31 + 28 + 31 + 5, d.DayOfYear);
+ Assert.Equal(2013, d.Year);
+ Assert.Equal(4, d.Month);
+ Assert.Equal(5, d.Day);
+ Assert.Equal(DayOfWeek.Friday, d.DayOfWeek);
+ Assert.Equal(31 + 28 + 31 + 5, d.DayOfYear);
}
- [Test]
+ [Fact]
public void CanConstructFromDateTime()
{
Date d1 = new Date(new DateTime(2001, 2, 3, 4, 5, 6, 7).AddTicks(8));
Date d2 = new Date(2001, 2, 3);
- Assert.AreEqual(d1, d2);
- Assert.IsTrue(d1.Equals(d2));
+ Assert.Equal(d1, d2);
+ Assert.True(d1.Equals(d2));
}
- [Test]
+ [Fact]
public void ToDateRemovesAllTimePortion()
{
Date d1 = new DateTime(2001, 2, 3, 4, 5, 6, 7).AddTicks(8).ToDate();
Date d2 = new Date(2001, 2, 3);
- Assert.AreEqual(d1, d2);
- Assert.IsTrue(d1.Equals(d2));
+ Assert.Equal(d1, d2);
+ Assert.True(d1.Equals(d2));
}
- [Test]
+ [Fact]
public void CanGetDateFromDateTime()
{
DateTime dt = new DateTime(2013, 4, 5, 6, 7, 8);
Date d = dt.ToDate();
- Assert.AreEqual(dt.Year, d.Year);
- Assert.AreEqual(dt.Month, d.Month);
- Assert.AreEqual(dt.Day, d.Day);
+ Assert.Equal(dt.Year, d.Year);
+ Assert.Equal(dt.Month, d.Month);
+ Assert.Equal(dt.Day, d.Day);
}
- [Test]
+ [Fact]
public void CanAddYears()
{
Date d1 = new Date(2013, 1, 30);
Date d2 = d1.AddYears(3);
- Assert.AreEqual(2016, d2.Year);
- Assert.AreEqual(1, d2.Month);
- Assert.AreEqual(30, d2.Day);
+ Assert.Equal(2016, d2.Year);
+ Assert.Equal(1, d2.Month);
+ Assert.Equal(30, d2.Day);
}
- [Test]
+ [Fact]
public void CanAddMonths()
{
Date d1 = new Date(2013, 2, 12);
Date d2 = d1.AddMonths(4);
- Assert.AreEqual(2013, d2.Year);
- Assert.AreEqual(6, d2.Month);
- Assert.AreEqual(12, d2.Day);
+ Assert.Equal(2013, d2.Year);
+ Assert.Equal(6, d2.Month);
+ Assert.Equal(12, d2.Day);
}
- [Test]
+ [Fact]
public void CanAddDays()
{
Date d1 = new Date(2012, 2, 29);
Date d2 = d1.AddDays(1);
- Assert.AreEqual(2012, d2.Year);
- Assert.AreEqual(3, d2.Month);
- Assert.AreEqual(1, d2.Day);
+ Assert.Equal(2012, d2.Year);
+ Assert.Equal(3, d2.Month);
+ Assert.Equal(1, d2.Day);
}
- [Test]
+ [Fact]
public void CanAddTimeSpanWithoutTime()
{
Date d1 = new Date(2013, 4, 5);
Date d2 = d1 + TimeSpan.FromDays(3);
- Assert.AreEqual(2013, d2.Year);
- Assert.AreEqual(4, d2.Month);
- Assert.AreEqual(8, d2.Day);
+ Assert.Equal(2013, d2.Year);
+ Assert.Equal(4, d2.Month);
+ Assert.Equal(8, d2.Day);
}
- [Test]
+ [Fact]
public void CanAddTimeSpanWithTime()
{
Date d1 = new Date(2013, 4, 5);
Date d2 = d1 + new TimeSpan(3, 4, 5, 6);
- Assert.AreEqual(2013, d2.Year);
- Assert.AreEqual(4, d2.Month);
- Assert.AreEqual(8, d2.Day);
+ Assert.Equal(2013, d2.Year);
+ Assert.Equal(4, d2.Month);
+ Assert.Equal(8, d2.Day);
}
- [Test]
+ [Fact]
public void CanSubtractTimeSpanWithoutTime()
{
Date d1 = new Date(2013, 4, 5);
Date d2 = d1 - TimeSpan.FromDays(3);
- Assert.AreEqual(2013, d2.Year);
- Assert.AreEqual(4, d2.Month);
- Assert.AreEqual(2, d2.Day);
+ Assert.Equal(2013, d2.Year);
+ Assert.Equal(4, d2.Month);
+ Assert.Equal(2, d2.Day);
}
- [Test]
+ [Fact]
public void CanSubtractTimeSpanWithTime()
{
Date d1 = new Date(2013, 4, 5);
Date d2 = d1 - new TimeSpan(3, 4, 5, 6);
- Assert.AreEqual(2013, d2.Year);
- Assert.AreEqual(4, d2.Month);
- Assert.AreEqual(1, d2.Day);
+ Assert.Equal(2013, d2.Year);
+ Assert.Equal(4, d2.Month);
+ Assert.Equal(1, d2.Day);
}
- [Test]
+ [Fact]
public void CanSubtractDates()
{
Date d1 = new Date(2013, 4, 5);
Date d2 = new Date(2013, 4, 7);
TimeSpan ts = d2 - d1;
- Assert.AreEqual(2, ts.Days);
- Assert.AreEqual(0, ts.Hours);
- Assert.AreEqual(0, ts.Minutes);
- Assert.AreEqual(0, ts.Seconds);
- Assert.AreEqual(0, ts.Milliseconds);
+ Assert.Equal(2, ts.Days);
+ Assert.Equal(0, ts.Hours);
+ Assert.Equal(0, ts.Minutes);
+ Assert.Equal(0, ts.Seconds);
+ Assert.Equal(0, ts.Milliseconds);
}
- [Test]
+ [Fact]
public void CanCompareDates()
{
Date d1 = new Date(2013, 4, 5);
Date d2 = new Date(2013, 4, 5);
Date d3 = new Date(2014, 4, 8);
- Assert.IsTrue(d1 == d2);
- Assert.IsTrue(d1 != d3);
- Assert.IsTrue(d1 <= d2);
- Assert.IsTrue(d1 >= d2);
- Assert.IsTrue(d1 < d1.AddDays(3));
- Assert.IsTrue(d1 < d1.AddMonths(4));
- Assert.IsTrue(d1 < d1.AddYears(5));
- Assert.IsTrue(d1 <= d1.AddDays(3));
- Assert.IsTrue(d1 <= d1.AddMonths(4));
- Assert.IsTrue(d1 <= d1.AddYears(5));
- Assert.IsTrue(d1 > d1.AddDays(-3));
- Assert.IsTrue(d1 > d1.AddMonths(-4));
- Assert.IsTrue(d1 > d1.AddYears(-5));
- Assert.IsTrue(d1 >= d1.AddDays(-3));
- Assert.IsTrue(d1 >= d1.AddMonths(-4));
- Assert.IsTrue(d1 >= d1.AddYears(-5));
+ Assert.True(d1 == d2);
+ Assert.True(d1 != d3);
+ Assert.True(d1 <= d2);
+ Assert.True(d1 >= d2);
+ Assert.True(d1 < d1.AddDays(3));
+ Assert.True(d1 < d1.AddMonths(4));
+ Assert.True(d1 < d1.AddYears(5));
+ Assert.True(d1 <= d1.AddDays(3));
+ Assert.True(d1 <= d1.AddMonths(4));
+ Assert.True(d1 <= d1.AddYears(5));
+ Assert.True(d1 > d1.AddDays(-3));
+ Assert.True(d1 > d1.AddMonths(-4));
+ Assert.True(d1 > d1.AddYears(-5));
+ Assert.True(d1 >= d1.AddDays(-3));
+ Assert.True(d1 >= d1.AddMonths(-4));
+ Assert.True(d1 >= d1.AddYears(-5));
}
- [Test]
+ [Fact]
public void CanImplicitCastToDateTime()
{
Date d = new Date(2013, 4, 5);
DateTime dt = d;
- Assert.AreEqual(d.Year, dt.Year);
- Assert.AreEqual(d.Month, dt.Month);
- Assert.AreEqual(d.Day, dt.Day);
- Assert.AreEqual(d.DayOfWeek, dt.DayOfWeek);
- Assert.AreEqual(d.DayOfYear, dt.DayOfYear);
- Assert.AreEqual(0, dt.Hour);
- Assert.AreEqual(0, dt.Minute);
- Assert.AreEqual(0, dt.Second);
- Assert.AreEqual(0, dt.Millisecond);
+ Assert.Equal(d.Year, dt.Year);
+ Assert.Equal(d.Month, dt.Month);
+ Assert.Equal(d.Day, dt.Day);
+ Assert.Equal(d.DayOfWeek, dt.DayOfWeek);
+ Assert.Equal(d.DayOfYear, dt.DayOfYear);
+ Assert.Equal(0, dt.Hour);
+ Assert.Equal(0, dt.Minute);
+ Assert.Equal(0, dt.Second);
+ Assert.Equal(0, dt.Millisecond);
}
- [Test]
+ [Fact]
public void CanExplicitCastToDateTime()
{
DateTime dt = new DateTime(2000, 1, 2, 3, 4, 5);
Date d = (Date)dt;
- Assert.AreEqual(dt.Year, d.Year);
- Assert.AreEqual(dt.Month, d.Month);
- Assert.AreEqual(dt.Day, d.Day);
+ Assert.Equal(dt.Year, d.Year);
+ Assert.Equal(dt.Month, d.Month);
+ Assert.Equal(dt.Day, d.Day);
}
- [Test]
+ [Fact]
public void CanToShortString()
{
using (new CultureScope(CultureInfo.InvariantCulture))
@@ -228,13 +227,11 @@ public void CanToShortString()
Date d = new Date(2013, 4, 5);
string s = d.ToShortString();
- StringAssert.Contains("2013", s);
- StringAssert.Contains("4", s);
- StringAssert.Contains("5", s);
+ Assert.Equal("04/05/2013", s);
}
}
- [Test]
+ [Fact]
public void CanToLongString()
{
using (new CultureScope(CultureInfo.InvariantCulture))
@@ -242,67 +239,62 @@ public void CanToLongString()
Date d = new Date(2013, 4, 5);
string s = d.ToLongString();
- StringAssert.Contains("2013", s);
- StringAssert.Contains("April", s);
- StringAssert.Contains("5", s);
+ Assert.Equal("Friday, 05 April 2013", s);
}
}
- [Test]
+ [Fact]
public void CanToString()
{
using (new CultureScope(CultureInfo.InvariantCulture))
{
Date d = new Date(2013, 4, 5);
- string s = d.ToShortString();
+ string s = d.ToString();
- StringAssert.Contains("2013", s);
- StringAssert.Contains("4", s);
- StringAssert.Contains("5", s);
+ Assert.Equal("04/05/2013", s);
}
}
- [Test]
+ [Fact]
public void CanParse()
{
using (new CultureScope(CultureInfo.InvariantCulture))
{
Date d = Date.Parse("2013-04-05");
- Assert.AreEqual(2013, d.Year);
- Assert.AreEqual(4, d.Month);
- Assert.AreEqual(5, d.Day);
- Assert.AreEqual(DayOfWeek.Friday, d.DayOfWeek);
- Assert.AreEqual(31 + 28 + 31 + 5, d.DayOfYear);
+ Assert.Equal(2013, d.Year);
+ Assert.Equal(4, d.Month);
+ Assert.Equal(5, d.Day);
+ Assert.Equal(DayOfWeek.Friday, d.DayOfWeek);
+ Assert.Equal(31 + 28 + 31 + 5, d.DayOfYear);
}
}
- [Test]
+ [Fact]
public void CanParseWithTime()
{
using (new CultureScope(CultureInfo.InvariantCulture))
{
Date d = Date.Parse("2013-04-05 6:07:08 PM");
- Assert.AreEqual(2013, d.Year);
- Assert.AreEqual(4, d.Month);
- Assert.AreEqual(5, d.Day);
- Assert.AreEqual(DayOfWeek.Friday, d.DayOfWeek);
- Assert.AreEqual(31 + 28 + 31 + 5, d.DayOfYear);
+ Assert.Equal(2013, d.Year);
+ Assert.Equal(4, d.Month);
+ Assert.Equal(5, d.Day);
+ Assert.Equal(DayOfWeek.Friday, d.DayOfWeek);
+ Assert.Equal(31 + 28 + 31 + 5, d.DayOfYear);
}
}
- [Test]
- [ExpectedException(typeof(FormatException))]
+ [Fact]
public void CantParseInvalidString()
{
using (new CultureScope(CultureInfo.InvariantCulture))
{
- Date d = Date.Parse("abc");
+ Assert.Throws(() => Date.Parse("abc"));
}
}
- [Test]
+ [Fact]
public void CanTryParseValidString()
{
using (new CultureScope(CultureInfo.InvariantCulture))
@@ -310,16 +302,16 @@ public void CanTryParseValidString()
Date d;
bool successs = Date.TryParse("2013-04-05", out d);
- Assert.IsTrue(successs);
- Assert.AreEqual(2013, d.Year);
- Assert.AreEqual(4, d.Month);
- Assert.AreEqual(5, d.Day);
- Assert.AreEqual(DayOfWeek.Friday, d.DayOfWeek);
- Assert.AreEqual(31 + 28 + 31 + 5, d.DayOfYear);
+ Assert.True(successs);
+ Assert.Equal(2013, d.Year);
+ Assert.Equal(4, d.Month);
+ Assert.Equal(5, d.Day);
+ Assert.Equal(DayOfWeek.Friday, d.DayOfWeek);
+ Assert.Equal(31 + 28 + 31 + 5, d.DayOfYear);
}
}
- [Test]
+ [Fact]
public void CanTryParseInalidString()
{
using (new CultureScope(CultureInfo.InvariantCulture))
@@ -327,11 +319,11 @@ public void CanTryParseInalidString()
Date d;
bool success = Date.TryParse("abc", out d);
- Assert.IsFalse(success);
+ Assert.False(success);
}
}
- [Test]
+ [Fact]
public void CanPresentRoundTripPattern()
{
using (new CultureScope(CultureInfo.InvariantCulture))
@@ -340,13 +332,13 @@ public void CanPresentRoundTripPattern()
string s1 = d.ToString("O");
string s2 = d.ToString("o");
- Assert.AreEqual(s1, s2);
- Assert.AreEqual("2013-04-05", s1);
- Assert.AreEqual("2013-04-05", s2);
+ Assert.Equal(s1, s2);
+ Assert.Equal("2013-04-05", s1);
+ Assert.Equal("2013-04-05", s2);
}
}
- [Test]
+ [Fact]
public void CanPresentSortablePattern()
{
using (new CultureScope(CultureInfo.InvariantCulture))
@@ -354,7 +346,7 @@ public void CanPresentSortablePattern()
Date d = new Date(2013, 4, 5);
string s = d.ToString("s");
- Assert.AreEqual("2013-04-05", s);
+ Assert.Equal("2013-04-05", s);
}
}
}
diff --git a/CSharpDate.Test/Properties/AssemblyInfo.cs b/CSharpDate.Test/Properties/AssemblyInfo.cs
deleted file mode 100644
index bb78aa7..0000000
--- a/CSharpDate.Test/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("CSharpDate.Test")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("CSharpDate.Test")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("7cfc2770-611b-4d0e-9936-f5e884641b85")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/CSharpDate.Test/packages.config b/CSharpDate.Test/packages.config
deleted file mode 100644
index b1846a7..0000000
--- a/CSharpDate.Test/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/CSharpDate.sln b/CSharpDate.sln
deleted file mode 100644
index 8b06019..0000000
--- a/CSharpDate.sln
+++ /dev/null
@@ -1,26 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpDate", "CSharpDate\CSharpDate.csproj", "{F83D91AF-E8B8-4440-850F-0EC6964978B5}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpDate.Test", "CSharpDate.Test\CSharpDate.Test.csproj", "{58B56DDF-86FA-4028-A71C-EA63E391AC94}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F83D91AF-E8B8-4440-850F-0EC6964978B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F83D91AF-E8B8-4440-850F-0EC6964978B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F83D91AF-E8B8-4440-850F-0EC6964978B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F83D91AF-E8B8-4440-850F-0EC6964978B5}.Release|Any CPU.Build.0 = Release|Any CPU
- {58B56DDF-86FA-4028-A71C-EA63E391AC94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {58B56DDF-86FA-4028-A71C-EA63E391AC94}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {58B56DDF-86FA-4028-A71C-EA63E391AC94}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {58B56DDF-86FA-4028-A71C-EA63E391AC94}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/CSharpDate/CSharpDate.csproj b/CSharpDate/CSharpDate.csproj
index f2ecf2a..72764a6 100644
--- a/CSharpDate/CSharpDate.csproj
+++ b/CSharpDate/CSharpDate.csproj
@@ -1,54 +1,7 @@
-
-
+
+
- Debug
- AnyCPU
- 8.0.30703
- 2.0
- {F83D91AF-E8B8-4440-850F-0EC6964978B5}
- Library
- Properties
- CSharpDate
- CSharpDate
- v4.0
- 512
+ netstandard2.0
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
diff --git a/CSharpDate/Date.cs b/CSharpDate/Date.cs
index 4af862a..68283bc 100644
--- a/CSharpDate/Date.cs
+++ b/CSharpDate/Date.cs
@@ -35,7 +35,7 @@ public struct Date : IComparable, IFormattable, ISerializable, IComparable
public static readonly Date MaxValue = new Date(DateTime.MaxValue);
public static readonly Date MinValue = new Date(DateTime.MinValue);
-
+
public Date(int year, int month, int day)
{
this._dt = new DateTime(year, month, day);
@@ -45,7 +45,7 @@ public Date(DateTime dateTime)
{
this._dt = dateTime.AddTicks(-dateTime.Ticks % TimeSpan.TicksPerDay);
}
-
+
private Date(SerializationInfo info, StreamingContext context)
{
this._dt = DateTime.FromFileTime(info.GetInt64("ticks"));
diff --git a/CSharpDate/Properties/AssemblyInfo.cs b/CSharpDate/Properties/AssemblyInfo.cs
deleted file mode 100644
index 0b3dbab..0000000
--- a/CSharpDate/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("CSharpDate")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("CSharpDate")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("757e4ec6-0e92-4f91-859b-5e593026ce37")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]