~ubuntu-branches/debian/sid/nunit/sid

« back to all changes in this revision

Viewing changes to src/NUnitFramework/tests/Constraints/OrTest.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2014-09-16 13:43:36 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140916134336-kjxz48tty6lx2ja5
Tags: 2.6.3+dfsg-1
* [c7bd1b5] Imported Upstream version 2.6.3+dfsg
* [bcb4bf8] Move nunit-console-runner to GAC-installed libnunit2.6, 
  don't treat it as a private lib. This lib is signed, and treated 
  as a GAC lib by consumers such as MonoDevelop.
* [7f08e99] Bump version to 2.6.3 as required
* [84535eb] Refreshed patches
* [8479f61] Split package up into per-assembly packages. This makes 
  ABI tracking easier in the future, as we can meaningfully have GAC 
  policy for cases where ABI isn't truly bumped, and no policy for 
  cases where it is. For example, if nunit.framework bumps ABI but 
  nunit.core does not, previously we would need to rebuild everything 
  using NUnit, but under the new split packaging, that rebuild would 
  not be needed for apps only using nunit.core.
* [17a7dc7] Add missing nunit.mocks.dll to nunit.pc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ****************************************************************
2
 
// Copyright 2007, Charlie Poole
3
 
// This is free software licensed under the NUnit license. You may
4
 
// obtain a copy of the license at http://nunit.org.
5
 
// ****************************************************************
6
 
 
7
 
namespace NUnit.Framework.Constraints
8
 
{
9
 
    [TestFixture]
10
 
    public class OrTest : ConstraintTestBase
11
 
    {
12
 
        [SetUp]
13
 
        public void SetUp()
14
 
        {
15
 
            theConstraint = new OrConstraint(new EqualConstraint(42), new EqualConstraint(99));
16
 
            expectedDescription = "42 or 99";
17
 
            stringRepresentation = "<or <equal 42> <equal 99>>";
18
 
        }
19
 
 
20
 
                internal object[] SuccessData = new object[] { 99, 42 };
21
 
 
22
 
                internal object[] FailureData = new object[] { 37 };
23
 
 
24
 
                internal string[] ActualValues = new string[] { "37" };
25
 
 
26
 
                [Test]
27
 
        public void CanCombineTestsWithOrOperator()
28
 
        {
29
 
            Assert.That(99, new EqualConstraint(42) | new EqualConstraint(99) );
30
 
        }
31
 
    }
32
 
}
 
 
b'\\ No newline at end of file'