What is NXUnit?
NXUnit is a NUnit -style unit testing framework about XML for .NET Framework. It is an extension to NUnit. It brings you the ability to do unit testing easily in XML applications. It helps you to concentrate on business logic of your XML application and improve your Test Driven Development(TDD) technics. You can directly compare one XML string or stream with another, er assert that they are equal, just like doing the same thing to two integers using xUnit. But without NXUnit, you must pay attention to whitespaces in XML strings, empty elements or attributes, unimportant order of elements or attributes, unneccessary comments and so on. It's similar with XmlUnit in some aspects.
Features
The current version is NXUnit 1.0rc1, July 2005. The following is the 8 features of this version, which you can find in the facade class XMLAssert:
* Assert that two XML inputs are equal.
* Compare two XML inputs and find all differences between them.
* Assert that declarations of two XML inputs are equal.
* Assert that document types of two XML inputs are equal.
* Assert the validity of an XML input.
* Assert that the evaluation of an XPath expression on an XML input will return the expected value.
* Assert that an XPath expression exists for an XML input.
* Assert that an XML input is included by another.
And you can change the properties of an instance of XMLAssert before an assertion or comparition, in order to:
* Ignore the case of the elements' and attributes' names
* Ignore XML comments
* Ignore XML declarations and document types of both inputs
* Ignore empty elements and attributes
* Ignore orders of elements and attributes
* Ignore unimportant whitespaces
Sample

2

3

4

5

6

7

8

9

10



11

12

13

14

15



16

17

18

19

20

21



22

23


24


25

26

27

28

29

30

31

32

33

34

35



36

37

38

39

40

41



42

43

44

45



46

47

48

49

50

51

52

53

54

55

56


57


58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78
