chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I used version 4.2.3.0. I upgraded to 5.1 and changed all my references.

I do not have access to the new functionality, in particular Isolate and Authentication. I get "cannot resolve symbol" errors for these. My existing code compiles and runs.
asked by hiegunn (1.9k points)

5 Answers

0 votes
Hi
The AAA features are in different assembly.
You should add a reference to Typemock.ArrangeActAssert.Dll
(Can be found .NET tab of 'Add Reference')
answered by ohad (35.4k points)
0 votes
Ok, Thanks. Works for Isolate but not Authentication.
answered by hiegunn (1.9k points)
0 votes
Hi
As far as I know there is no symbol or namespace by the name
'Authentication' in the Isolator.
Can you please give an example of code that does not compile?
answered by ohad (35.4k points)
0 votes
From the developer's guide

// C#
[TestFixture]
[ClearMocks] // Clear all mocks between tests
public class TestClass
{
[Test]
[VerifyMocks] // Verify all mocks after tests
public void Authenticated ()
{
Authentication authenticator = new Authentication();
// set up our expectations for 2 Log calls in IsAuthenticated
// "Entering Authentication" Log at first line
// "User login failed user" Log
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
// CAUTION: ALL calls here are mocked!!!
Logger.Log(Logger.NORMAL,null);
Logger.Log(Logger.NORMAL,null);
}
// Thats it folks

// authentication should fail
Assert.IsFalse(authenticator.IsAuthenticated("user","password"));
// Verify is done automatically by the framework.
}
}
answered by hiegunn (1.9k points)
0 votes
Hi
The Authentication class in the developer guide is just an example of class
we wish to test isolated from the Logger.
The class does not really exists in the Isolator assemblies.
answered by ohad (35.4k points)
...