Skip to content

Instantly share code, notes, and snippets.

View PedroAvila's full-sized avatar

Pedro Ávila PedroAvila

View GitHub Profile
@PedroAvila
PedroAvila / gist:b4336f45ed084b03e281b550140b871e
Created July 21, 2018 00:28
Mi DataGridView para trasladarme entre celdas de una misma fila y al llegar al final me cree la siguiente fila
public class RequestNewRowEventArgs : EventArgs
{
#region Properties
public bool RowAdded { get; set; }
public bool Handled { get; set; }
#endregion
}
public delegate void RequestNewRowEventHandler(object sender, RequestNewRowEventArgs e);
@PedroAvila
PedroAvila / index.html
Created March 14, 2021 01:55
HTML: Código Básico
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Página del Repositorio</title>
</head>
@PedroAvila
PedroAvila / XUnitAsserts.cs
Created November 9, 2024 22:21 — forked from jonesandy/XUnitAsserts.cs
A cheat sheet of Asserts for xUnit.net in C#
/*
STRINGS
*/
Assert.Equal(expectedString, actualString);
Assert.StartsWith(expectedString, stringToCheck);
Assert.EndsWith(expectedString, stringToCheck);
// Some can also take optional params
Assert.Equal(expectedString, actualString, ignoreCase: true);
Assert.StartsWith(expectedString, stringToCheck, StringComparison.OrdinalIgnoreCase);