DocumentableItemTest.cs 745 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // MonoTests.System.Web.Services.Description.DocumentableItemTest.cs
  3. //
  4. // Author:
  5. // Erik LeBel <[email protected]>
  6. //
  7. // (C) 2003 Erik LeBel
  8. //
  9. using NUnit.Framework;
  10. using System;
  11. using System.Web.Services.Description;
  12. namespace MonoTests.System.Web.Services.Description
  13. {
  14. [TestFixture]
  15. public class DocumentableItemTest
  16. {
  17. DocumentableItem item;
  18. [SetUp]
  19. public void InitializeItem()
  20. {
  21. // workaround for base class
  22. item = new Types();
  23. }
  24. [Test]
  25. public void TestDefaultProperties()
  26. {
  27. Assertion.AssertEquals(String.Empty, item.Documentation);
  28. }
  29. [Test]
  30. public void TestNullDocumentationString()
  31. {
  32. item.Documentation = null;
  33. Assertion.AssertEquals(String.Empty, item.Documentation);
  34. }
  35. }
  36. }