Browse Source

Fixed NuGet package cache problems.

Added more unit tests.
master
Craig Oates 6 years ago
parent
commit
f89bf493ca
  1. 3
      TestCentre/TestCentre.fsproj
  2. 27
      TestCentre/UnitTests.fs
  3. 2
      WetPancake/WetPancake.fsproj
  4. 2
      WetPancake/packages.config
  5. 3
      WetPancakeCLI/WetPancakeCLI.csproj
  6. 1
      WetPancakeCLI/packages.config

3
TestCentre/TestCentre.fsproj

@ -56,9 +56,8 @@
<Import Project="$(FSharpTargetsPath)" />
<ItemGroup>
<Content Include="TextFiles\desktop-clock-info.txt" />
<Content Include="txt Files\console-waterworks-announcement.txt" />
<Content Include="txt Files\word-generator.txt" />
<Content Include="TextFiles\console-waterworks-announcement.txt" />
<Content Include="TextFiles\word-generator.txt" />
<Compile Include="AssemblyInfo.fs" />
<Compile Include="TestingConstants.fs" />
<Compile Include="UnitTests.fs" />

27
TestCentre/UnitTests.fs

@ -5,6 +5,27 @@
open Xunit
open WetPancake
open TestingConstants
open System.IO
(*These tests check to see if the .txt files exists in the Test Centre project.
The Wet Pancake library does not expose the file access functions so the .txt
files are mirrored here (in Text Centre)
The mirroring, also, doubles up as sample files to pass into Wet Pancake.*)
[<Fact>]
let ``desktop-clock-info-txt can be found`` () =
let result = File.Exists DesktopClock
Assert.Equal(true, result);
[<Fact>]
let ``console-waterworks-announcements-txt can be found`` () =
let result = File.Exists ConsoleWaterworks
Assert.Equal(true, result);
[<Fact>]
let ``word-generator-txt can be found`` () =
let result = File.Exists WordGenerator
Assert.Equal(true, result);
[<Fact>]
let ``Request Random Text does not generate a null`` () =
@ -17,16 +38,16 @@
Assert.NotNull result
[<Fact>]
let ``Request Text From File does not generate a null for desktop-clock-info.txt`` () =
let ``Request Text From File does not generate a null for desktop-clock-info-txt`` () =
let result = Pancake.RequestTextFromFile 5 5 DesktopClock
Assert.NotNull result
[<Fact>]
let ``Request Text From File does not generate a null for console-waterworks-announcement.txt`` () =
let ``Request Text From File does not generate a null for console-waterworks-announcement-txt`` () =
let result = Pancake.RequestTextFromFile 5 5 ConsoleWaterworks
Assert.NotNull result
[<Fact>]
let ``Request Text From File does not generate a null for word-generator.txt`` () =
let ``Request Text From File does not generate a null for word-generator-txt`` () =
let result = Pancake.RequestTextFromFile 5 5 WordGenerator
Assert.NotNull result

2
WetPancake/WetPancake.fsproj

@ -54,7 +54,6 @@
<Content Include="TextFiles\desktop-clock-info.txt" />
<Content Include="TextFiles\console-waterworks-announcement.txt" />
<Content Include="TextFiles\word-generator.txt" />
<Content Include="packages.config" />
<Compile Include="AssemblyInfo.fs" />
<Compile Include="SystemServices.fs" />
<Compile Include="DataAccess.fs" />
@ -64,6 +63,7 @@
<Compile Include="DataServices.fs" />
<Compile Include="ProductServices.fs" />
<None Include="Script.fsx" />
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib" />

2
WetPancake/packages.config

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="System.ValueTuple" version="4.4.0" targetFramework="net471" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net471" />
</packages>

3
WetPancakeCLI/WetPancakeCLI.csproj

@ -40,6 +40,9 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />

1
WetPancakeCLI/packages.config

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Console.Waterworks" version="0.1.0.0-alpha1" targetFramework="net471" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net471" />
</packages>
Loading…
Cancel
Save