Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename depricated -> deprecated #46

Merged
merged 2 commits into from
Jul 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Deprecated Functions

Prior to version 1.1.0.0, FsUnit implemented a function named `not` that overwrote the F# operator of the same name. This is not ideal,
so as of version 1.1.0.0 the FsUnit function has been renamed to `not'` (not + single-quote). If you need or want the previous function, it
can be made available by opening the FsUnitDepricated module.
can be made available by opening the FsUnitDeprecated module.

Visual Studio 11 Support
=======
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
if [ ! -f packages/FAKE/tools/Fake.exe ]; then
mono --runtime=v4.0 .nuget/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion -Prerelease
fi
mono --runtime=v4.0 packages/FAKE/tools/FAKE.exe build.fsx $@
mono --runtime=v4.0 packages/FAKE/tools/FAKE.exe build.fsx "$@"
2 changes: 1 addition & 1 deletion src/FsUnit.MbUnit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ let ascending = CustomMatchers.ascending

let descending = CustomMatchers.descending

module FsUnitDepricated =
module FsUnitDeprecated =
let not x = not' x

// haveLength, haveCount, Empty, and shouldFail are not implemented for MbUnit and xUnit
2 changes: 1 addition & 1 deletion src/FsUnit.MsTestUnit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let ascending = CustomMatchers.ascending

let descending = CustomMatchers.descending

module FsUnitDepricated =
module FsUnitDeprecated =
let not x = not' x

// haveLength, haveCount, Empty, and shouldFail are not implemented for MbUnit, xUnit, or MsTest
4 changes: 3 additions & 1 deletion src/FsUnit.NUnit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ module TopLevelOperators =

let startWith (s:string) = StartsWithConstraint s

let haveSubstring (s:string) = SubstringConstraint s

let ofExactType<'a> = ExactTypeConstraint(typeof<'a>)

let instanceOfType<'a> = InstanceOfTypeConstraint(typeof<'a>)
Expand All @@ -89,6 +91,6 @@ module TopLevelOperators =
let not' x = NotConstraint(x)

/// Deprecated operators. These will be removed in a future version of FsUnit.
module FsUnitDepricated =
module FsUnitDeprecated =
[<System.Obsolete>]
let not x = not' x
2 changes: 1 addition & 1 deletion src/FsUnit.Xunit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ let ascending = CustomMatchers.ascending

let descending = CustomMatchers.descending

module FsUnitDepricated =
module FsUnitDeprecated =
let not x = not' x

// haveLength, haveCount, Empty, and shouldFail are not implemented for MbUnit and xUnit
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beAscendingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

type ``be ascending tests`` ()=
[<Test>] member test.
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beDescendingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

type ``be descending tests`` ()=
[<Test>] member test.
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beEmptyStringTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be EmptyString tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beEmptyTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be Empty tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beFalseTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be False tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beGreaterThanOrEqualTo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be greaterThanOrEqualTo tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beGreaterThanTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be greaterThan tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beLessThanOrEqualToTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be lessThanOrEqualTo tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beLessThanTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be lessThan tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beNullOrEmptyStringTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be NullOrEmptyString tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beNullTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be Null tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beOfExactTypeTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``should be of exact type tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beSameAsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be SameAs tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/beTrueTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``be True tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/containTests.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace FsUnit.Test
open MbUnit.Framework
open FsUnit.MbUnit
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``contain tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/equalTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

type AlwaysEqual() =
override this.Equals(other) = true
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/haveCountTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``have Count tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/haveLengthTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``haveLength tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/matchListTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``match List tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/raiseTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ open System
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

exception TestException

Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/shouldEndWithTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``should endWith tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MbUnit.Test/shouldStartWithTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open MbUnit.Framework
open FsUnit.MbUnit
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestFixture>]
type ``should startWith tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beAscendingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be ascending tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beDescendingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be descending tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beEmptyStringTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be EmptyString tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beEmptyTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

type ``be Empty tests`` ()=
[<TestMethod>] member test.
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beFalseTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be False tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beGreaterThanOrEqualTo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be greaterThanOrEqualTo tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beGreaterThanTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be greaterThan tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beLessThanOrEqualToTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be lessThanOrEqualTo tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beLessThanTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be lessThan tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beNullOrEmptyStringTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be NullOrEmptyString tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beNullTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be Null tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beOfExactTypeTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``should be of exact type tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beSameAsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be SameAs tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/beTrueTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open NHamcrest.Core
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``be True tests`` ()=
Expand Down
2 changes: 1 addition & 1 deletion tests/FsUnit.MsTest.Test/containTests.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace FsUnit.Test
open Microsoft.VisualStudio.TestTools.UnitTesting
open FsUnit.MsTest
open FsUnitDepricated
open FsUnitDeprecated

[<TestClass>]
type ``contain tests`` ()=
Expand Down
Loading