Sha256: 64d07abdc23fc51c53af57f9486c1ccb14057d0e4135712da1eba4daa2941afe

Contents?: true

Size: 1.5 KB

Versions: 60

Compression:

Stored size: 1.5 KB

Contents

// This file was auto-generated based on version 1.0.1 of the canonical data.

using Xunit;
using System;

public class RnaTranscriptionTest
{
    [Fact]
    public void Rna_complement_of_cytosine_is_guanine()
    {
        Assert.Equal("G", RnaTranscription.ToRna("C"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement_of_guanine_is_cytosine()
    {
        Assert.Equal("C", RnaTranscription.ToRna("G"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement_of_thymine_is_adenine()
    {
        Assert.Equal("A", RnaTranscription.ToRna("T"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement_of_adenine_is_uracil()
    {
        Assert.Equal("U", RnaTranscription.ToRna("A"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement()
    {
        Assert.Equal("UGCACCAGAAUU", RnaTranscription.ToRna("ACGTGGTCTTAA"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Correctly_handles_invalid_input_rna_instead_of_dna_()
    {
        Assert.Throws<ArgumentException>(() => RnaTranscription.ToRna("U"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Correctly_handles_completely_invalid_dna_input()
    {
        Assert.Throws<ArgumentException>(() => RnaTranscription.ToRna("XXX"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Correctly_handles_partially_invalid_dna_input()
    {
        Assert.Throws<ArgumentException>(() => RnaTranscription.ToRna("ACGTXXXCTTAA"));
    }
}

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
trackler-2.2.1.73 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.72 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.71 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.70 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.69 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.68 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.67 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.66 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.65 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.64 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.63 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.62 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.61 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.60 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.59 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.58 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.57 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.56 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.55 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.54 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs