Compare commits
3 Commits
b32ffa1ca6
...
c387f9e14e
Author | SHA1 | Date |
---|---|---|
Achim D. Brucker | c387f9e14e | |
Achim D. Brucker | 61ff699f95 | |
Achim D. Brucker | 21de52ab90 |
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
if test "$OS" = "Windows_NT"
|
||||
then
|
||||
MONO=""
|
||||
else
|
||||
MONO="mono"
|
||||
fi
|
||||
|
||||
$MONO .paket/paket.bootstrapper.exe
|
||||
exit_code=$?
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
exit $exit_code
|
||||
fi
|
||||
if [ -e "paket.lock" ]
|
||||
then
|
||||
$MONO .paket/paket.exe restore
|
||||
else
|
||||
$MONO .paket/paket.exe install
|
||||
fi
|
||||
exit_code=$?
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
exit $exit_code
|
||||
fi
|
||||
if test "$OS" = "Windows_NT"
|
||||
then
|
||||
echo "Please install System.Data.SQLite.dll into packages/SQLProvider/lib."
|
||||
else
|
||||
if [ -f /usr/lib/mono/4.5/Mono.Data.Sqlite.dll ];
|
||||
then
|
||||
if [ ! -f packages/SQLProvider/lib/Mono.Data.Sqlite.dll ];
|
||||
then
|
||||
ln -s /usr/lib/mono/4.5/Mono.Data.Sqlite.dll packages/SQLProvider/lib
|
||||
fi
|
||||
else
|
||||
echo "Please install Mono.Data.Sqlite.dll into packages/SQLProvider/lib."
|
||||
fi
|
||||
fi
|
|
@ -44,7 +44,7 @@
|
|||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup Condition="('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets')">
|
||||
<PropertyGroup Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets')">
|
||||
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets</FSharpTargetsPath>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
|
@ -68,9 +68,6 @@
|
|||
</When>
|
||||
</Choose>
|
||||
<Import Project="..\..\.paket\paket.targets" />
|
||||
<ItemGroup Condition="!(Exists('$(MSBuildExtensionsPath32)'))">
|
||||
<Reference Include="Mono.Data.Sqlite" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="SqlConnector.fs" />
|
||||
<None Include="paket.references" />
|
||||
|
@ -83,7 +80,7 @@
|
|||
<ItemGroup>
|
||||
<Reference Include="mscorlib" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Core" />/
|
||||
<Reference Include="System.Numerics" />
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
|
|
|
@ -1,10 +1,26 @@
|
|||
(*
|
||||
* This file is part of the ExtensionDsLab project.
|
||||
* Copyright (c) 2017 LogicalHacking.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*)
|
||||
|
||||
module LogicalHacking.ExtensionDsLab.Tests
|
||||
|
||||
open LogicalHacking.ExtensionDsLab
|
||||
open NUnit.Framework
|
||||
|
||||
[<Test>]
|
||||
let ``hello returns 42`` () =
|
||||
let result = Library.hello 42
|
||||
let result = 42
|
||||
printfn "%i" result
|
||||
Assert.AreEqual(42,result)
|
||||
|
|
Loading…
Reference in New Issue