Skip to content

Commit 50cc8a4

Browse files
committed
Switched to LICENSE file
Added debug output to tests
1 parent 8eda36a commit 50cc8a4

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

ShiftSharp/ShiftSharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<RepositoryType>git</RepositoryType>
2222
<PackageTags>C#; shift; work schedule; shift calendar; work calendar</PackageTags>
2323
<PackageReleaseNotes>Upgraded to .NET 8</PackageReleaseNotes>
24-
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
24+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
2525
</PropertyGroup>
2626
<ItemGroup>
2727
<Folder Include="Resources\" />
@@ -31,7 +31,7 @@
3131
<Pack>True</Pack>
3232
<PackagePath>\</PackagePath>
3333
</None>
34-
<None Include="..\LICENSE.txt">
34+
<None Include="..\LICENSE">
3535
<Pack>True</Pack>
3636
<PackagePath>\</PackagePath>
3737
</None>

TestShiftSharp/BaseTest.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2828
using Point85.ShiftSharp.Schedule;
2929
using System;
3030
using System.Collections.Generic;
31+
using System.Diagnostics;
3132

3233
namespace TestShiftSharp
3334
{
@@ -47,13 +48,6 @@ public abstract class BaseTest
4748
// a work schedule
4849
protected WorkSchedule schedule;
4950

50-
[ClassInitialize()]
51-
public static void SetFlags(TestContext context)
52-
{
53-
testToString = true;
54-
testDeletions = true;
55-
}
56-
5751
private void TestShifts(WorkSchedule ws)
5852
{
5953
Assert.IsTrue(ws.Shifts.Count > 0);
@@ -261,7 +255,7 @@ protected void RunBaseTest(WorkSchedule ws, Duration hoursPerRotation, Duration
261255
// toString
262256
if (testToString)
263257
{
264-
Console.WriteLine(ws.ToString());
258+
Debug.WriteLine(ws.ToString());
265259
ws.PrintShiftInstances(instanceReference, instanceReference.PlusDays(rotationDays.Days));
266260
}
267261

0 commit comments

Comments
 (0)