Skip to content

Commit

Permalink
chore: some housework whitespace and references
Browse files Browse the repository at this point in the history
  • Loading branch information
alastairtree committed Dec 27, 2019
1 parent 1244287 commit 6b53b65
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 18 deletions.
6 changes: 1 addition & 5 deletions Console.Net461/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LazyCache;
using Ninject;

Expand All @@ -28,4 +24,4 @@ static void Main(string[] args)
System.Console.WriteLine(item.Item1);
}
}
}
}
3 changes: 1 addition & 2 deletions Console.Net461/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down Expand Up @@ -33,4 +32,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public static IServiceCollection AddLazyCache(this IServiceCollection services,
return services;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="nunit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
</ItemGroup>

Expand Down
14 changes: 7 additions & 7 deletions LazyCache.UnitTests/CachingServiceMemoryCacheProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ namespace LazyCache.UnitTests
[TestFixture]
public class CachingServiceMemoryCacheProviderTests
{
[SetUp]
public void BeforeEachTest()
{
sut = BuildCache();
testObject = new ComplexTestObject();
}

private static CachingService BuildCache()
{
return new CachingService(new MemoryCacheProvider(new MemoryCache(new MemoryCacheOptions())));
Expand All @@ -43,6 +36,13 @@ private class ComplexTestObject

private const string TestKey = "testKey";

[SetUp]
public void BeforeEachTest()
{
sut = BuildCache();
testObject = new ComplexTestObject();
}


[Test]
public void AddComplexObjectThenGetGenericReturnsCachedObject()
Expand Down
2 changes: 1 addition & 1 deletion LazyCache.UnitTests/LazyCache.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="fluentassertions" Version="5.6.0" />
<PackageReference Include="nunit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion LazyCache.UnitTests/MockCachingServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ public void GetOrAddCalledWithCacheKeyAndFunctionWithTimeSpan_FunctionResultRetu
result.Should().Be(FunctionReturnValue);
}
}
}
}

0 comments on commit 6b53b65

Please sign in to comment.