public void SetTest()
        {
            AnonymousType anonymousType = new AnonymousType {
                Namespace = nmspc
            };

            resolvedResult                    = new MemberResolveResult(anonymousType);
            resolvedResult.CallingType        = anonymousType;
            resolvedResult.ResolvedExpression = new ExpressionResult(clsName);
            ctx.Stub(p => p.GetResolvedTypeNameResult()).Return(resolvedResult);
            ctx.Stub(p => p.GetCurrentFilePath()).Return(new FilePath(dir + fileName));

            resolver.Stub(r => r.GetNewTypeContent(Arg <string> .Is.Anything, Arg <string> .Is.Anything, Arg <string> .Is.Anything)).Return(fileContent);

            changes = generateClassRefactoring.PerformChanges(null, null);
        }
        public void Validates_only_expression_that_isnt_member_nor_type()
        {
            MemberResolveResult result = new MemberResolveResult(null)
            {
                ResolvedMember = null,
                ResolvedType   = new DomReturnType {
                    Type = null
                },
                ResolvedExpression = new ExpressionResult("SomeClass")
            };

            ctx.Stub(p => p.GetResolvedTypeNameResult()).Return(result);

            Assert.IsTrue(generateClassRefactoring.IsValid());
        }