Skip to content

Commit

Permalink
Create a duplicate Unit Test project that targets .NET Framework to m…
Browse files Browse the repository at this point in the history
…ake sure NetStandard DLLs are playing nicely together #337
  • Loading branch information
rianjs authored and Rian Stockbower committed Nov 22, 2017
1 parent b2cac13 commit 4737988
Show file tree
Hide file tree
Showing 492 changed files with 19,846 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Ical.Net.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class AlarmTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Ical.Net.DataTypes;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using Ical.Net.CalendarComponents;
using Ical.Net.DataTypes;
using Ical.Net.Serialization;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class AttendeeTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class CalDateTimeTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Ical.Net.DataTypes;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using Ical.Net.CalendarComponents;
using Ical.Net.DataTypes;
using Ical.Net.Serialization;
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class CalendarEventTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Ical.Net.Serialization;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class CalendarPropertiesTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Ical.Net.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
internal class CollectionHelpersTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ical.Net.CalendarComponents;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class ComponentTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class ConcurrentDeserializationTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class CopyTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ical.Net.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class DataTypeTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Ical.Net.Serialization.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class DateTimeSerializerTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Ical.Net.Serialization.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class DeserializationTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Ical.Net.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class DocumentationExamples
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class EqualityAndHashingTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Ical.Net.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class FreeBusyTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Ical.Net.Evaluation;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
internal class GetOccurrenceTests
{
Expand Down
161 changes: 161 additions & 0 deletions net-core/Ical.Net.CoreUnitTests/IcsFiles.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class JournalTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Ical.Net.Utility;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class ProgramTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
using Ical.Net.Utility;
using NUnit.Framework;
using NUnit.Framework.Interfaces;
using static Ical.Net.UnitTests.SerializationHelpers;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class RecurrenceTests
Expand Down Expand Up @@ -3149,12 +3148,12 @@ public void ExDateFold_Tests()

var firstExclusion = new CalDateTime(start.AddDays(4));
e.ExceptionDates = new List<PeriodList> { new PeriodList { new Period(firstExclusion) } };
var serialized = SerializeToString(e);
var serialized = SerializationHelpers.SerializeToString(e);
Assert.AreEqual(1, Regex.Matches(serialized, "EXDATE:").Count);

var secondExclusion = new CalDateTime(start.AddDays(5));
e.ExceptionDates.First().Add(new Period(secondExclusion));
serialized = SerializeToString(e);
serialized = SerializationHelpers.SerializeToString(e);
Assert.AreEqual(1, Regex.Matches(serialized, "EXDATE:").Count);
}

Expand All @@ -3177,12 +3176,12 @@ public void ExDateTimeZone_Tests()
exceptionDateList.Add(new Period(new CalDateTime(_now.AddDays(1))));
e.ExceptionDates.Add(exceptionDateList);

var serialized = SerializeToString(e);
var serialized = SerializationHelpers.SerializeToString(e);
const string expected = "TZID=Europe/Stockholm";
Assert.AreEqual(3, Regex.Matches(serialized, expected).Count);

e.ExceptionDates.First().Add(new Period(new CalDateTime(_now.AddDays(2))));
serialized = SerializeToString(e);
serialized = SerializationHelpers.SerializeToString(e);
Assert.AreEqual(3, Regex.Matches(serialized, expected).Count);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ical.Net.CalendarComponents;
using Ical.Net.Serialization;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
internal class SerializationHelpers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
using Ical.Net.DataTypes;
using Ical.Net.Serialization;
using Ical.Net.Serialization.DataTypes;
using NUnit.Framework;
using Ical.Net.Utility;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class SerializationTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using Ical.Net.DataTypes;
using Ical.Net.Serialization;
using NUnit.Framework;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using Ical.Net.CalendarComponents;
using Ical.Net.DataTypes;
using Ical.Net.Serialization;
using Ical.Net.Serialization.DataTypes;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class SimpleDeserializationTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class SymmetricSerializationTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class TextUtilTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using NUnit.Framework;
using NUnit.Framework.Interfaces;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
[TestFixture]
public class TodoTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Ical.Net.Serialization;
using NUnit.Framework;

namespace Ical.Net.UnitTests
namespace Ical.Net.CoreUnitTests
{
public class VTimeZoneTest
{
Expand Down
Loading

0 comments on commit 4737988

Please sign in to comment.