DotNetShoutout - Stories tagged with JustMock
4
Shouts

JustMock Q2 2011 SP1 Internal Build

published 604 days, 10 hours, 6 minutes ago posted by KodefuGuruKodefuGuru 605 days, 21 hours, 30 minutes ago
Tuesday, September 27, 2011 3:36:42 PM GMT Monday, September 26, 2011 4:12:35 AM GMT
A new internal build of Telerik JustMock was recently released with several new features and fixes.What’s NewSupport of Raise event and ability to mock explicit interface implementation in Future Mocking. Ability to do Mock.AssertAll(foo) /foo.AssertAll() [when Telerik.JustMock.Helpers is used] that will assert all the arrange regardless of MustBeCalled specified. Make Single Parameter Declaration in Returns optional. Support of up to 16 parameters similar to .NET 4.0 in Returns and DoInstead Delegate. ... (more)
category: Agile | clicked: 2 | 5 comments | | source: www.kodefuguru.com
tags: Telerik, Mock, JustMock, unit testing
9
Shouts

PostSharp and JustMock side by side

published 648 days, 4 hours, 50 minutes ago posted by KodefuGuruKodefuGuru 651 days, 3 hours, 2 minutes ago
Sunday, August 14, 2011 8:53:00 PM GMT Thursday, August 11, 2011 10:40:29 PM GMT
In this post I will show mocking a member call inside a PostSharp aspect. There were previously compatibility issues between both of the tools running side by side which is now been officially fixed with the most recent release of that tool (>= 2.1.2.8-1594). For those who don’t know what PostSharp is all about, it is a tool that lets you write aspects easily than you can imagine. Personally , it took me just minutes to get started with a aspect that will authorize ... (more)
category: Agile | clicked: 28 | comment | | source: weblogs.asp.net
tags: Telerik, JustMock, PostSharp
5
Shouts

An Introduction to Mocking (Now that we are SOLID)

published 876 days, 2 hours, 48 minutes ago posted by KodefuGuruKodefuGuru 878 days, 1 hour, 25 minutes ago
Wednesday, December 29, 2010 10:54:37 PM GMT Tuesday, December 28, 2010 12:17:53 AM GMT
How does mocking benefit me?  That’s a question I hear a lot as I travel around the world giving talks.  So before we dive into how to use a mocking tool like JustMock Free Edition, let’s discuss why this is important and the benefit that mocking provides over other techniques like Fakes and Stubs. As a primer, I encourage you to read “Mocks Aren’t Stubs” by Martin Fowler.  Again, if you haven’t read it yet  - go ahead. I’ll wait.  Come back whe... (more)
category: Agile | clicked: 9 | comment | | source: www.skimedic.com
tags: Test Automation, Telerik, TDD, Mocking, Mock, Testing, JustMock, BDD
8
Shouts

How to raise event for a mocked call. - Mehfuz's WebLog

published 957 days, 11 hours, 22 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 959 days, 17 hours, 59 minutes ago
Saturday, October 09, 2010 2:20:14 PM GMT Thursday, October 07, 2010 7:43:27 AM GMT
Wednesday, October 06, 2010 5:01 PM mehfuzh How to raise event for a mocked call. Recently, while i was working with a support issue , i found this interesting piece of test code that i would like to share here. This is actually written by Stefan Lieser (clean code developer from Germany forwarded to me by Jan from Telerik Germany). As the title states,  it is to mock a specific event for an expected call.   Now Stefan wants to raise an event from WebCli... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, JustMock
10
Shouts

Mocking LINQ to SQL [Continued…] using RLINQ - Mehfuz's WebLog

published 1028 days, 13 hours, 42 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1029 days, 16 hours, 39 minutes ago
Friday, July 30, 2010 12:01:01 PM GMT Thursday, July 29, 2010 9:03:22 AM GMT
Thursday, July 29, 2010 2:28 PM mehfuzh Mocking LINQ to SQL [Continued…] using RLINQ After making the post on mocking LINQ to SQL, this morning i was having a chat with Stephen forte and come to know that telerik a has product named RLINQ. RLINQ is built on top of OpenAccess and it supports variety of databases. Being curious, i thought of giving a spin with it and may be try to mock the its LINQ to SQL implementation using JustMock.   Now, before i star... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, RLINQ, JustMock
5
Shouts

Unit testing LINQ to SQL - Mehfuz's WebLog

published 1038 days, 6 hours, 59 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1038 days, 11 hours, 16 minutes ago
Tuesday, July 20, 2010 6:43:23 PM GMT Tuesday, July 20, 2010 2:26:12 PM GMT
Tuesday, July 20, 2010 7:28 PM mehfuzh Unit testing LINQ to SQL Unit testing LINQ to SQL repositories can be very challenging. Unit testing such requires faking hard to mock classes and requires simulation to return your custom data for a particular LINQ statement. In this post, i will show how you can mock your LINQ repositories easily without much digging in. As,  i was goggling [my start page is bing, its a matter of time when i will be bing-ing :-)] ... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: C#, JustMock
4
Shouts

Mocking the File System to Improve Testability (with JustMock) - Telerik Blogs - Milan Nankov

published 1073 days, 11 hours, 53 minutes ago posted by StevesSteves 1074 days, 1 hour, 50 minutes ago
Tuesday, June 15, 2010 1:49:55 PM GMT Monday, June 14, 2010 11:52:28 PM GMT
Many applications require access to the file system to create, modify or delete files and folders. But how do you make sure that those applications behave according to their their specifications? You do it with tests of course but there is the catch: In general it is not a good idea to have tests that are performing Input/Output operations like accessing... (more)
category: Agile | clicked: 1 | comment | | source: blogs.telerik.com
tags: Telerik, Mocking, JustMock, Testability
6
Shouts

Is your test method self-validating ? - Mehfuz's WebLog

published 1095 days, 13 hours, 3 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1096 days, 7 hours, 16 minutes ago
Monday, May 24, 2010 12:40:04 PM GMT Sunday, May 23, 2010 6:26:55 PM GMT
Sunday, May 23, 2010 5:17 PM mehfuzh Is your test method self-validating ? Writing state of art unit tests that can validate your every part of the framework is challenging and interesting at the same time, its like becoming a samurai. One of the key concept in this is to keep our test synced all the time as underlying code changes and thus breaking them to the furthest unit as possible.  This also means, we should avoid  multiple conditions embedded in a ... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, JustMock
7
Shouts

Working with multiple interfaces on a single mock. - Mehfuz's WebLog

published 1121 days, 18 hours, 42 minutes ago posted by http://mehfuzh.myopenid.com/http://mehfuzh.myopenid.com/ 1123 days, 6 hours, 42 minutes ago
Wednesday, April 28, 2010 7:00:19 AM GMT Monday, April 26, 2010 7:00:12 PM GMT
Monday, April 26, 2010 10:35 PM mehfuzh Working with multiple interfaces on a single mock. Today , I will cover a very simple topic, which can be useful in cases we want to mock different interfaces on our expected mock object.  Our target interface is simple and it looks like: publicinterfaceIFoo : IDisposable{void Do();} Our target interface has an IDisposable implemented. Now, generally if we implement it in a class , we have to implement the whole of ... (more)
category: Agile | clicked: 1 | comment | | source: weblogs.asp.net
tags: Telerik, JustMock