GithubHelp home page GithubHelp logo

hamedfathi / mockablestaticgenerator Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 1.0 86 KB

A C# source generator to make an interface and a class wrapper to test static and extension methods.

Home Page: https://hamedfathi.me/the-dotnet-world-csharp-source-generator/

License: MIT License

C# 100.00%
csharp sourcegenerator csharp9 csharp-sourcegenerator dotnet mock mocking testing test

mockablestaticgenerator's Introduction

Hi there ๐Ÿ‘‹, I'm Hamed Fathi

I've been programming for over ten years and have gained many software-making skills. I mainly use Microsoft's .NET ecosystem to build the software's behind-the-scenes parts and ensure I know its latest features. I also use JavaScript, TypeScript, and Angular to assemble the pieces of software that people interact with, helping to make them user-friendly. Apart from my development responsibilities, I also place significant importance on Quality Assurance (QA) and testing, which are integral to the software-making process. I sincerely hope you find value in using my open-source software regularly. Your engagement and feedback are very much appreciated, as they are crucial in helping continuous improvement and making sure the software meets our needs optimally.

"Yesterday, I was clever and wanted to change the world. Today, I am wise, so I am changing myself."
Rumi (Iranian poet 1207 โ€“ 1273)


HamedStack

HamedStack is a GitHub organization specializing in projects built with C# and JavaScript/TypeScript. I established HamedStack as a platform to share code repositories, each designed to address various programming needs. The organization houses over 70 projects spanning multiple applications, from client-side to server-side solutions.

HamedStack is committed to being a valuable resource for the coding community. The projects are continuously updated to keep pace with the ever-changing software development landscape. I invite you to explore the repositories, contribute to the projects, and collaborate with others to create better software solutions for tomorrow.


Connect with me:

hamed__fathi hamedfathi

Languages and Tools:

azure dotnet dotnet csharp javascript typescript html5 bootstrap angular xunit nsubstitute jest playwright cypress k6 mssql postgresql docker

mockablestaticgenerator's People

Contributors

hamedfathi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nikolaidk

mockablestaticgenerator's Issues

Generates duplicate methods

I'm trying to use this on an external static class (System.IO.Compression.ZipFile), but the result appears to generate duplicate methods many times.

image

Possibly due to being a partial class? Not sure.

MockableStatic - how to use?

THe blog post is rather lengthy. Could you make a simple example for
[MockableStatic]
public class Math
{
public static int Add(int a, int b) { return a+b; }
public static int Sub(int a, int b) { return a+b; }
}

?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.