Skip to content

Instantly share code, notes, and snippets.

View mstfymrtc's full-sized avatar
🏠
Working from home

Mustafa YUMURTACI mstfymrtc

🏠
Working from home
View GitHub Profile
SONAR_USER="admin"
SONAR_PASS="mustafa123"
SONAR_HOST_URL="http://localhost:9000"
SONAR_PROJECT_NAME="dotnet-mutation-testing-example"
dotnet-sonarscanner begin \
/k:$SONAR_PROJECT_NAME \
/n:$SONAR_PROJECT_NAME \
/d:sonar.host.url=$SONAR_HOST_URL \
/d:sonar.login=$SONAR_USER \
/d:sonar.password=$SONAR_PASS \
using NUnit.Framework;
namespace Example.Tests
{
public class Tests
{
[Test]
public void Sum_GivenSecondArgumantAsZero_ShouldCalculateProperly()
{
using NUnit.Framework;
namespace Example.Tests
{
public class Tests
{
[Test]
public void Sum_GivenSecondArgumantAsZero_ShouldCalculateProperly()
{
public static class Utilities
{
public static int Sum(int a, int b)
{
return a + b;
}
}
{
"posts": [
{
"id": 1,
"title": "title-one",
"author": "mustafayumurtaci"
},
{
"id": 2,
"title": "title-two",
{
"title": "title-NEW",
"author": "mustafayumurtaci-NEW"
}
{
"posts": [
{ "id": 1, "title": "title-one", "author": "mustafayumurtaci" },
{ "id": 2, "title": "title-two", "author": "mustafayumurtaci" },
{ "id": 3, "title": "title-three", "author": "mustafayumurtaci" },
{ "id": 4, "title": "title-four", "author": "mustafayumurtaci" }
],
"comments": [
{ "id": 1, "body": "comments here", "postId": 1 },
{ "id": 2, "body": "some other comments here", "postId": 4 }