public void AliasToBeanResultTransformer_ShouldHaveEqualityBasedOnCtorParameter()
		{
			var transformer1 = new AliasToBeanResultTransformer(typeof(object));
			var transformer2 = new AliasToBeanResultTransformer(typeof(object));
			transformer1.Should().Be.EqualTo(transformer2);
			transformer1.GetHashCode().Should().Be.EqualTo(transformer2.GetHashCode());

			var transformer3 = new AliasToBeanResultTransformer(typeof(int));
			transformer1.Should().Not.Be.EqualTo(transformer3);
			transformer1.GetHashCode().Should().Not.Be.EqualTo(transformer3.GetHashCode());
		}
		public void AliasToBeanResultTransformer_ShouldHaveEqualityBasedOnCtorParameter()
		{
			var transformer1 = new AliasToBeanResultTransformer(typeof(object));
			var transformer2 = new AliasToBeanResultTransformer(typeof(object));
			Assert.That(transformer1, Is.EqualTo(transformer2));
			Assert.That(transformer1.GetHashCode(), Is.EqualTo(transformer2.GetHashCode()));

			var transformer3 = new AliasToBeanResultTransformer(typeof(int));
			Assert.That(transformer1, Is.Not.EqualTo(transformer3));
			Assert.That(transformer1.GetHashCode(), Is.Not.EqualTo(transformer3.GetHashCode()));
		}
 public bool Equals(AliasToBeanResultTransformer other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.resultClass, resultClass));
 }
		public bool Equals(AliasToBeanResultTransformer other)
		{
			if (ReferenceEquals(null, other))
			{
				return false;
			}
			if (ReferenceEquals(this, other))
			{
				return true;
			}
			return Equals(other.resultClass, resultClass);
		}
		public void ResultTransformes()
		{
			IResultTransformer rt = new RootEntityResultTransformer();
			NHAssert.IsSerializable(rt);

			rt = new AliasToBeanConstructorResultTransformer(typeof(StudentDTO).GetConstructor(new System.Type[] { }));
			NHAssert.IsSerializable(rt);

			rt = new AliasToBeanResultTransformer(typeof(StudentDTO));
			NHAssert.IsSerializable(rt);

			rt = new DistinctRootEntityResultTransformer();
			NHAssert.IsSerializable(rt);

			rt = new PassThroughResultTransformer();
			NHAssert.IsSerializable(rt);
		}