In my application, I have two equivalent enum s. One lives in the DAL, the other at the contract service level. They have the same name (but are in different namespaces) and must have the same elements and values.
I would like to write a unit test that will provide this. So far I have the following:
public static class EnumAssert { public static void AreEquivalent(Type x, Type y) {
This is great for comparing names, but how do I check if the values ββmatch?
(I am using NUnit 2.4.6, but I suppose this applies to any unit test framework)
enums c # unit-testing
Roger Lipscombe
source share