In one of our projects, we recently started using Cypress for end-to-end testing. Cypress executes tests written in JavaScript or TypeScript. However, we wanted to first perform some data-preparation operations using C#. In fact, we needed to run Cypress tests from NUnit C# tests. In this article, I’m sharing how this can be done 🙂 It will also be useful if you use another testing framework than NUnit, but the examples are based on it. Table of...
Strona głównaUżytkownik
dsibinski | użytkownik
Sztuka programowania 1150 dni, 4 godziny, 13 minut temu 41 źrodło rozwiń
Home » Foreach, IEnumerable and IEnumerator in C#Programming Today, we’re taking a deeper look at foreach loop in C#. What does a collection need to be able to use it in a foreach loop? Does it have to implement IEnumerable interface? These questions are often asked during interviews, so it’s worth knowing the answers 😃 We will go through a step-by-step example in building our own custom collection to see how all that works. Let’s dive in! 😎 Throughout this article, I’m working with a Unit Tests pro...
Sztuka programowania 1171 dni, 5 godzin, 22 minuty temu 118 źrodło rozwiń
Dziś biorę na tapet dwa najpopularniejsze IDE dla .NET developerów – Visual Studio i JetBrains Rider. Czym się różnią? I dlaczego używam już (prawie) tylko Ridera? 😉 Zapraszam!
Today I’d like to share with you a very interesting concept in software testing – Assert Object pattern. It makes the Assert part of a test much simpler and more readable. Let’s dive right into it 😉The Asserts Hell Let’s consider the following unit test: What’s wrong here? Given and When sections are great single-liners. We know straightaway what’s the input and the action executed. However, Then block is too complex. It’s hard to figure out, just passing quickly through this test, what is expected. T...
Sztuka programowania 1472 dni, 3 godziny, 47 minut temu 65 źrodło rozwiń
Today I'm trying to give you some tips on approaching an unknown codebase. How do you manage to quickly find yourself in new code you don't know? How do you manage to join a new project?
Sztuka programowania 1876 dni, 5 godzin, 44 minuty temu 116 źrodło rozwiń
Sztuka programowania 2100 dni, 4 godziny, 44 minuty temu 180 źrodło rozwiń
C# 8.0 brings us another nice feature called slicing. In order to make it possible, two new concepts are introduced: Indexes and Ranges. Let’s see how this tiny feature is supposed to make our life easier 🙂
Sztuka programowania 2107 dni, 3 godziny, 39 minut temu 112 źrodło rozwiń
If you're interested in C# 8.0 new features, come and read about nullable reference types :) We'll continue exploring next interesting features of C#8 in the weeks to come.
Sztuka programowania 2114 dni, 3 godziny, 8 minut temu 113 źrodło rozwiń
On the 5th of November 2018 I had a pleasure to attend Dotnetos Conference in Warsaw. It was a first conference oriented towards a single topic – .NET performance – I took part in. I didn’t know what to expect from this event, as it was much smaller than other conferences I used to attend and actually organized by 3 .NET geeks (more about them later 🙂 ). In today’s post I’d like to share with you my feelings about the event. I’d also like to smuggle some topics that were covered during the sessions,...
Sztuka programowania 2180 dni, 1 godzinę, 26 minut temu 40 źrodło rozwiń
This page collects all the posts I’ve written within .NET Internals series so far
Sztuka programowania 2187 dni, 3 godziny, 33 minuty temu 145 źrodło rozwiń
Whether you’re a C# (or similar language like Java) developer eager to learn JavaScript or you’ve already been working with JS for some time, I hope you find this article interesting. I collected for you 10 JavaScript features which are/were the most shocking for C# developers who learnt JavaScript.
Wanna know how .NET applications are executed by the CLR? Come and read the 10th post in the .NET Internals series! :)
Sztuka programowania 2232 dni, 4 godziny, 6 minut temu 65 źrodło rozwiń
Let's talk about JIT compilation today :) .NET Internals continuation!
Sztuka programowania 2247 dni, 5 godzin, 15 minut temu 41 źrodło rozwiń
Wanna know a bit more about LOH? Let's examine it in today's post about a bit forgotten Large Object Heap :)
Sztuka programowania 2261 dni, 4 godziny, 31 minut temu 65 źrodło rozwiń
Wanna know what is fReachable queue, how finalization works in .NET and how to use a Dispose pattern? Come and read a new post in my .NET Internals series :)
Sztuka programowania 2268 dni, 4 godziny, 25 minut temu 45 źrodło rozwiń
Let's see what is 'card table' data structure and how is it used generational garbage collection Written by Dawid Sibińskion Continuing .NET Internals series on the blog, today we’re going to see what is generational garbage collection. You’ll also get to know what is a card table data structure and for what it’s used 🙂 As we know from this post, heaps used by .NET process to allocate reference objects are allocated on different kinds of heaps. In the previous article we also got to know that...
Sztuka programowania 2275 dni, 3 godziny, 56 minut temu 48 źrodło rozwiń
Examining garbage collection in more details today. We'll see what is marking phase, actual collection process and heaps compaction to make it more efficient. Come and read! :)
Sztuka programowania 2282 dni, 4 godziny, 48 minut temu 66 źrodło rozwiń
New post in .NET Internals series - this time about Garbage Collection and memory allocation in .NET. Let's start GC topics! :)
Sztuka programowania 2289 dni, 2 godziny, 1 minutę temu 78 źrodło rozwiń
Let's continue the .NET Internals series and see Boxing and Unboxing today :)
Sztuka programowania 2296 dni, 23 godziny, 32 minuty temu 55 źrodło rozwiń
2nd post form my ".NET Internals" series. Today you'll see how stack and heap data structures are organized and used. You'll also get to know where value and reference types are stored in memory. Come and enjoy! :)
Sztuka programowania 2303 dni, 4 godziny, 42 minuty temu 93 źrodło rozwiń