~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Test/Dialogs/TextEditorDialogFixture.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 ICSharpCode.Reports.Core;
 
6
using ICSharpCode.Reports.Core.Interfaces;
 
7
using NUnit.Framework;
 
8
 
 
9
namespace ICSharpCode.Reports.Addin.Test.Dialogs
 
10
{
 
11
        [TestFixture]
 
12
        public class TextEditorDialogFixture
 
13
        {
 
14
                [Test]
 
15
                public void ConstructorWithEmptyString()
 
16
                {
 
17
                        IStringBasedEditorDialog ed = new DummyEditorDialog(String.Empty);
 
18
                        Assert.AreEqual(ed.TextValue,String.Empty,"TextValue should be empty");
 
19
                }
 
20
                
 
21
                [Test]
 
22
                public void ConstructorWithText ()
 
23
                {
 
24
                        string s = "myteststring";
 
25
                        IStringBasedEditorDialog ed = new DummyEditorDialog(s);
 
26
                        Assert.AreEqual (ed.TextValue,s);
 
27
                }
 
28
                
 
29
                [Test]
 
30
                public void tt ()
 
31
                {
 
32
                        ReportModel m = ReportModel.Create ();
 
33
                }
 
34
        }
 
35
}