JustMock

What's new in latest releases.

JustMock Q1 2013

JustMock Q3 2012 SP2

  • Updated documentation: CodeCoverage Tools - article about using JustMock with other profiler tools.

  • Updated documentation: How the JustMock profiler works with Local Service on TFS 201x. Could be found under Installation Instructions.

  • Updated documentation: Visual Studio 2012 MSbuild configuration reworked.

  • Fixed: Compatibility issue with NCover 4, NCover 1.5.8, dotCover and dotTrace.

  • Fixed: Test passes with debugger and fails without debugger on MSTest.

  • Fixed: Telerik.JustMock.VisualBasic.dll is not signed.

  • Fixed: Could not load file or assembly Telerik.CodeWeaver.Api in .NET 4.5 (VS 2012 test runner).

  • Fixed: TypeLoadException when mocking a class in VB.NET.

  • Fixed: Mocking a concrete Sub in Visual Basic fails.

  • Fixed: Mocking static in VS2008 throws AccessViolationException.

  • Fixed: JustMockRunner does not preserve the command line for the wrapped runner.

  • Fixed: Can't mock Internal static method inside Mock.SetupStatic when InternalsVisibleTo attribute is set.

JustMock Q3 2012 SP1

  • New: Improved Mock.Replace support to mock mscorlib methods under a private member in SUT.

  • New: Mocking of LINQ query for non-public methods using ReturnsCollection.

  • New: Mock.Initialize support for non public members.

  • New: API Update: Renamed Mock.Partial<>().For(expression) to Mock.Initialize<>(expression) to make it more consistent with Mock.Initailize() [Initializes all]. Mock.Partial is still available but marked as obsolete.

  • New in AutoMocking: Different instance mocking with AutoMocking container.

  • New in AutoMocking: Assert expectation for a specific instance.

  • Fixed: Unable to assert a mock when null value is passed for a nullable value type (e.g. int?) argument.

  • Fixed: Fails to assert a method with enum argument that inherits short/byte.

  • Fixed: Arg matching in assertion fails for an interface type argument.

  • Fixed: AutoMocking DLL is not included in the NuGet package.

  • Fixed: No JustMock project template in VS2012.

  • Fixed: Exception when mocking methods that return internal type.

  • Fixed: JIT exception when mocking method from MVC4 assembly.

  • Fixed: DLL signing exception when mocking strongly type assemblies.

  • Fixed: DoInstead support for Future Mocks.

  • Fixed: Mocking member from struct is not working.

  • Fixed: Exception when mocking a final method that returns a multi-dimensional array.

  • Fixed: Exception "Profiler is not enabled" when trying to access a mock object via public property.

  • Fixed: Exception for missing method when mocking generic type (specific user scenario).

  • Fixed: Mock.SetupStatic is throwing exception for class with generic constraint.

  • Fixed: Occurs.Once is not working properly for shared instance.

  • Fixed: JustMock installer does not allow installing only VS 2012 add-in.

  • Fixed: Exception for invalid program when mocking SmtpClient.Send.

  • Fixed: Error when executing original method for different instances in the same test method once the type is mocked.

  • Fixed: Object reference exception in fluent interface for mock with internal methods.

JustMock Q3 2012

  • New: Automocking - mock a class and its dependencies w/o the need to create each dependency as a unique mock.

  • Fixed: Can't mock internal virtual set property with profiler when InternalVisibleToAttribute isn’t applied for a proxied type. JustMock expectation (using Mock.Arrange) should be instance specific unless instance is explicitly ignored (Ex. using IgnoreInstance)

  • Fixed: Exception when mocking type from an unsigned assembly. Must sign the dynamic assembly only for strongly typed assemblies.

  • Fixed: "Declaration referenced in a method implementation cannot be a final method." exception in mocking System.Data.Datable class. Removed ThreadPool check as instances are differentiated anyway by the instance Id. This fully supports mocking in background thread.

  • Fixed: Argument matching issue for params type when same method is called with different length arguments.

  • Fixed: Didn't support passing of direct array for params type argument.

  • Fixed: Didn't support extensive array matching based on element values regardless of the variable instance.

  • Fixed: Didn't resolve implementing base interface properly when some of the members are common in child.

  • Fixed: Conflict with object overrides when methods with similar name are implemented in an interface.

JustMock Q2 2012 SP1

  • New: Now uses proxy to mock an interface member, that is privately implemented in base class.

  • New: Support for future mocking on collections (LINQ) through IgnoreInstance support on ReturnsColleciton modifier.

  • New: Support for mocking of non-public methods from proxied instance.

  • Fixed: When instance is ignored for a method, and if Constructor.Mocked is specified during Mock.Create, then creating new instance of that type should not call the original constructor.

  • Fixed: Stackoverflow exception when mocking a property that has set_ prefix in its name.

  • Fixed: Incorrect assertion of methods with matchers argument when default value is passed.

  • Fixed: Mock.Replace for injecting MsCorlib member that is located in another assembly.

  • Fixed: Mock.SetupStatic exception for method with generic interface constraint.

JustMock Q2 2012

  • New: Improved MsCorlib mocking. No need to use MockClassAttribute on the class using the MsCorlib class being mocked.

  • Usability Improvement: IgnoreInstance must be included right after Mock.Arrange.

  • Fixed: Once a method is mocked in test method scope, even if the instance is different, it is always calling the mocked version.

  • Fixed: Incorrect assignment of generic argument for interface type constraint when method is declared in base class.

JustMock Q1 2012 SP1

  • New: Custom Delegate with ref/out value copy support in DoInstead.

  • New: Dynamic loading of System.Web.dll from current domain in profiling API to resolve version conflict between 3.5 and 4.0.

  • New: Mock.DoNotUseProfiler() to explicitly turn off profiler for a test class scope when strictly mocking only virtual members.

  • New: Wait duration support in Raises.

  • Fixed: Exception when mocking a property declared within a test class when profiler is turned off.

  • Fixed: Exception when mocking same class type with two different generic arguments using ReturnsCollection.

  • Fixed: Null reference exception when mocking extension method for enumeration type.

  • Fixed: Nested or recursive exception with virtual members when profiler is turned off.

  • Fixed: "IgnoreInstance" bug that was not resolving the correct instance when specified in Setup/TestInitialize method.

  • Fixed: Null reference exception for asserting non mocked member.

  • Fixed: Documentation fixes.

JustMock Q1 2012

  • New: JustMock code activity workflow for one stop deployment to TFS 2010.

  • New: Now we added JustMockRunner.exe - external tool (under Libraries folder) to run JustMock outside of Visual Studio and integrate with non MSTest environments.

  • New: Auto arrange virtual properties during object initialization set from constructor argument.

  • Fixed: Exception thrown for params argument with Expression(T) type.

  • Fixed: Mock.NonPublic.Assert should not execute the mock; it is raising exception when set with Throws in arrange.

  • Fixed: InOrder option should only be specified after Returns call.

JustMock Q3 2011 SP1

  • New: Support for mocking inside a threadpool.

  • New: Support for asserting occurrence in extension methods.

  • New: The InOrder option now supports asserting the order of mock regardless of the instance within a test scope.

  • New: Support of IgnoreInstance switch is now available in Fluent Extensions.

  • New: Ability to invoke a call with expression argument with dynamic value.

  • New: Windows Start Menu folder with links to the help documentation and examples.

  • New: JustMock's documentation now has Help3 version shipped separately in ZIP file.

  • Fixed: JustTrace compatibility issue with JustMock (it will be fully resolved after the upcoming JustTrace internal build).

  • Fixed: Failed to assert method when passed with same valued int for a long type argument.

  • Fixed: The InOrder option does not work properly when combined with Occurs.

  • Fixed: Maximum number of times a call can be invoked when arranged with Occurs.AtMost() option was not asserting as expected.

  • Fixed: Exception when creating mock from SpContextType from Microsoft.Sharepoint assembly.

  • Fixed: Testing generic method with different declaring type argument.

  • Fixed: Exception while doing Mock.SetupStatic(typeof(Mapper)) from AutoMapper assembly due to DefaultContructorConstraint flag.

  • Fixed: Incorrect Occurs.Once exception during Mock.Assert when asserting call with mocked argument using Arg.Matches.

JustMock Q3 2011

  • New: Fluent Assertions.

  • New: Support of mocking a Static constructor.

  • New: Support of IgnoreArgument switch in Mock.Assert.

  • New: Support of mocking methods with Expression(func(t, bool)) as argument.

  • New: Ability to ignore instance for an expectation explicitly using IgnoreInstance switch for a setup.

  • Fixed: Creating instance from interface having generic overloads with same arguments.

  • Fixed: Exception for abstract class in ReturnsCollection (RetunsColleciton is used for mocking IQueryable implements).

  • Fixed: Implemented dependent interfaces for target type when specified via x.Implement{TInterface} in Mock.Create.

JustMock Q2 2011

  • New: Support of asserting order in which the mocked calls are invoked.

  • New: Extending LINQ mocking - mocking queries with Join operator.

  • New: Ability to mock private method through interface specifier.

  • New: New additions to Fluent extensions.

  • Fixed: Mocking new Guid argument for specific value.

  • Fixed: Assert Mock.Raise should invoke event from correct instance for multiple mock setups.

  • Fixed: Mocking class having method that hides its virtual base method.

  • Fixed: Mocked call is invoking base from a mocked a event container.

  • Fixed: TypeEmittter consider this class only for method hiding.

  • Fixed: Issue with mocking non-public member when type is proxied.

  • Fixed: Exception for uncommitted class during Mock.Create that has custom GetHashCode method and throws exception when environment is not properly set.

  • Fixed: Ability to set expectations for properties that is declared in the test class.

  • Fixed: Automatically set call original flag on framework methods If mocked in a different test but not in the current.

  • Fixed: Issue with generic constraint used for base class.

  • Fixed: Ability to apply Constructor.Mocked on Sealed class.

  • Fixed: Exception when params object[] is set with value type argument in Mock.Arrange.

  • Fixed: Mocking write only properly.

  • Fixed: Mock.Raise exception for events defined inside the nested class (where the mocking type is injected).

  • Fixed: Proxy caching issue that was causing Constructor.Mocked to fail when same type and constructor combination is used in different test methods and run as a whole.

  • Fixed: Invalid program exception when void abstract method is called from within the constructor during Mock.Create.

  • Fixed: For non-mocked constructor it should throw the original exception (if any) not the TargetInvocationException.

  • Fixed: Failing to assert occurrences properly in Mock.AssertSet.

  • Fixed: Invalid cast exception while asserting calls with byte[] arguments.

JustMock Q1 2011

  • New: Ability to explicitly specify if we want a constructor to be mocked or not (also available in Free edition).

  • New: Support for Fluent mocking syntax (accessible via Telerik.JustMock.Helpers).

  • Fixed: Mock.Arrange tries to creates instance even when the property is not nested.

  • Fixed: Mock.Arrange does not work as expected for static calls if used during test initialization.

  • Fixed: Issue with creating proxy that has internal abstract member.

  • Fixed: Ability to pass out parameters as Null in Mock.Arrange.

  • Fixed: Issues setting up multiple occurrences for similar calls (same signature).

  • Fixed: Sharepoint SpListCollection exception.

  • Fixed: Mocking of non-public virtual members from base class.

JustMock Q3 2010

  • New position for JustMock menu - in Q3 2010 the JustMock menu is inside the Telerik menu, and is no longer on the main menu in Visual Studio.

  • Support of byte[] for Arg.IsAny<>() argument.

  • Bug fixes - several bugs are fixed in Q3 2010.

  • Extended support - tight support of Telerik OpenAccess, Microsoft SharePoint and Microsoft Entity Framework mocking.

  • Mock.Initialize - setting up all framework methods during test initialization.

  • Mock.Raise - ability to raise mocked events.

  • Ability to set Occurrence during Mock.Arrange.

  • Ability to specify Occurrence during Mock.AssertSet.

  • Ability to chain Returns call that works on a single value for InSequence alternative.

  • Multiple matchers - should select the setup with right matcher in case of Specialization, when more specialized matcher is used along with Arg.IsAny<T>, it should select the proper setup with right matcher.

  • Support of executing mocked method in same test method without necessarily have to pass the type as an argument.

  • Mocking LINQ Queries - ability to mock LINQ queries with custom select.

  • Mock Internal Types Via Proxy - ability to mock internal types as public with InternalsVisibleTo attribute.

JustMock Q2 2010 SP1

  • Non-public members and types support - with Q2 2010 you can mock/isolate non-public members and types, an operation that is currently not available in most of the other mocking frameworks.

  • Support for TestDriven.NET - with Q2 2010 JustMock you can run tests, which mock final, static, etc. members, using the unit testing add-in TestDriven.NET.

  • JustCode integration - after Q2 2010 the JustCode Test Runner fully supports JustMock. This means that you will be able to effortlessly run JustMock "elevated" unit tests with the help of JustCode. You can also rely on JustCode to detect and warn you of errors in your JustMock arrange sets.

  • Visual Studio 2010 support - with Q2 2010 JustMock offers full support for Visual Studio 2010. We have also included VS2010 solutions with examples so that you don't need to convert the 2008 solutions to 2010.