~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Analysis/UnitTesting/Test/Tree/TestResultIgnoreTaskWithNoMessageTestFixture.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using System.Resources;
 
6
using ICSharpCode.Core;
 
7
using ICSharpCode.SharpDevelop;
 
8
using ICSharpCode.UnitTesting;
 
9
using NUnit.Framework;
 
10
 
 
11
namespace UnitTesting.Tests.Tree
 
12
{
 
13
        [TestFixture]
 
14
        public class TestResultIgnoreTaskWithNoMessageTestFixture
 
15
        {
 
16
                Task task;
 
17
                
 
18
                [TestFixtureSetUp]
 
19
                public void SetUpFixture()
 
20
                {
 
21
                        ResourceManager rm = new ResourceManager("UnitTesting.Tests.Strings", GetType().Assembly);
 
22
                        ResourceService.RegisterNeutralStrings(rm);
 
23
                }
 
24
                
 
25
                [SetUp]
 
26
                public void Init()
 
27
                {
 
28
                        TestResult testResult = new TestResult("MyNamespace.MyTests");
 
29
                        testResult.ResultType = TestResultType.Ignored;
 
30
                        task = TestResultTask.Create(testResult, null);
 
31
                }
 
32
                
 
33
                [Test]
 
34
                public void TaskMessageEqualsIsTakenFromStringResource()
 
35
                {
 
36
                        Assert.AreEqual("Test case 'MyNamespace.MyTests' was not executed.", task.Description);
 
37
                }
 
38
        }
 
39
}