skip navigation
Telerik JustMock
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Extended Reality
UI for Unity XR
Free Tools
JustAssembly
JustDecompile
VB.NET to C# Converter
Testing Framework
View all products
Overview
Roadmap
What's New
Roadmap
Release History
Docs & Support
Pricing
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
JustMock
This is a migrated thread and some comments may be shown as answers.
Mocking increment/decrement operator on event handlers
1 Answer
158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott
asked on
23 Feb 2012,
10:33 AM
Is there a way to mock the increment/decrement operators?
Example:
MyEventHandler +=
Handler
ToAdd;
MyEventHandler -= HandlerToSubtrack;
It seems the typical property mocking doesn't work here.
Add a comment
Submit comment
Cancel
1 Answer
, 1 is accepted
Sort by
Score
Date
0
Ricky
Telerik team
answered on
27 Feb 2012,
03:56 PM
Hi Scott,
Thanks again for contacting us. From the above example it looks to me that you are trying to mock event handlers.
Please take a look into the following posts on how you can mock events using JustMock.
http://www.telerik.com/help/justmock/basic-usage-mock-raise.html
http://www.telerik.com/help/justmock/basic-usage-mock-raises.html
In addition, if you have a specific sample in mind then you can also send it out to me. I will take a further look.
Kind Regards,
Mehfuz
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license!
Book your seat now >>
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Answers by
Ricky
Telerik team
Share this question
or
Copy link