public static TestTag Alias(TestTag from, TestTag to) { if (from.Type != to.Type) { throw SpecFailure.CannotAliasDifferentTagTypes(); } if (from != to) { _aliases[from] = to; } return(from); }